Fix element finding.

This commit is contained in:
Alexis Lahouze 2017-06-10 20:36:36 +02:00
parent 9fe38b2560
commit 3e287cb7f4

View File

@ -161,8 +161,8 @@ var app = angular.module('accountant', [
callback: function() { callback: function() {
vm.dialogShown = false; vm.dialogShown = false;
var email = angular.element($document.querySelector('#email')).val(); var email = angular.element($document[0].querySelector('#email')).val();
var password = angular.element($document.querySelector('#password')).val(); var password = angular.element($document[0].querySelector('#password')).val();
LoginService.login( LoginService.login(
email, password email, password
).then(function(result) { ).then(function(result) {