From 3e287cb7f456fd04adca12e761bccc93b394d3cc Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 10 Jun 2017 20:36:36 +0200 Subject: [PATCH] Fix element finding. --- src/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/app.js b/src/js/app.js index 5f53573..e80dc71 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -161,8 +161,8 @@ var app = angular.module('accountant', [ callback: function() { vm.dialogShown = false; - var email = angular.element($document.querySelector('#email')).val(); - var password = angular.element($document.querySelector('#password')).val(); + var email = angular.element($document[0].querySelector('#email')).val(); + var password = angular.element($document[0].querySelector('#password')).val(); LoginService.login( email, password ).then(function(result) {