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() {
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) {