Fix eslint errors again.
This commit is contained in:
parent
97d23c5bcd
commit
81434d7fde
@ -91,7 +91,7 @@ angular.module('accountant', [
|
|||||||
editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default'
|
editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default'
|
||||||
})
|
})
|
||||||
|
|
||||||
.service('LoginService', function($http) {
|
.factory('LoginService', function($http) {
|
||||||
var login = function(email, password) {
|
var login = function(email, password) {
|
||||||
return $http.post('/api/user/login', {
|
return $http.post('/api/user/login', {
|
||||||
email: email,
|
email: email,
|
||||||
@ -129,8 +129,8 @@ angular.module('accountant', [
|
|||||||
callback: function() {
|
callback: function() {
|
||||||
vm.dialogShown = false;
|
vm.dialogShown = false;
|
||||||
|
|
||||||
var email = $('#email').val();
|
var email = angular.element('#email').val();
|
||||||
var password = $('#password').val();
|
var password = angular.element('#password').val();
|
||||||
LoginService.login(email, password).success(function(result) {
|
LoginService.login(email, password).success(function(result) {
|
||||||
// TODO Alexis Lahouze 2015-08-28 Handle callback.
|
// TODO Alexis Lahouze 2015-08-28 Handle callback.
|
||||||
// Call to /api/login to retrieve the token
|
// Call to /api/login to retrieve the token
|
||||||
|
Loading…
Reference in New Issue
Block a user