Fix jshint.
This commit is contained in:
parent
68ef144474
commit
2131d1f39a
@ -22,7 +22,7 @@ function account() {
|
||||
this.future=ko.observable();
|
||||
this.current=ko.observable();
|
||||
this.pointed=ko.observable();
|
||||
};
|
||||
}
|
||||
|
||||
// The AccountController.
|
||||
accountantApp.controller(
|
||||
@ -43,7 +43,7 @@ accountantApp.controller(
|
||||
|
||||
$scope.valueClass = function(account, value) {
|
||||
if(!account) {
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
if(value < account.authorized_overdraft) {
|
||||
@ -156,7 +156,7 @@ accountantApp.controller(
|
||||
// Update accounts
|
||||
$scope.accounts = angular.fromJson(data);
|
||||
|
||||
var accountToSelect = null
|
||||
var accountToSelect = null;
|
||||
|
||||
// Reset selected account to the new instance corresponding to the old one.
|
||||
if($scope.account) {
|
||||
|
@ -25,9 +25,8 @@ var accountantApp = angular.module("accountantApp", [
|
||||
$httpProvider.interceptors.push(function($q) {
|
||||
return {
|
||||
"response": function(response) {
|
||||
console.debug(response)
|
||||
if(response.data.ok == false) {
|
||||
return $q.reject(response)
|
||||
if(response.data.ok === false) {
|
||||
return $q.reject(response);
|
||||
}
|
||||
// TODO Intercept validation error.
|
||||
return response;
|
||||
@ -40,7 +39,7 @@ var accountantApp = angular.module("accountantApp", [
|
||||
title: response.data.title,
|
||||
text: response.data.text,
|
||||
width: 300
|
||||
})
|
||||
});
|
||||
|
||||
return $q.reject(response);
|
||||
}
|
||||
|
@ -224,8 +224,8 @@ accountantApp.controller(
|
||||
|
||||
// Returns true if the entry is a scheduled one.
|
||||
$scope.isSaved = function(entry) {
|
||||
return entry.id != null;
|
||||
}
|
||||
return entry.id !== null;
|
||||
};
|
||||
|
||||
$scope.iconSaveClass = function(entry) {
|
||||
if(!$scope.isSaved(entry)) {
|
||||
@ -245,7 +245,7 @@ accountantApp.controller(
|
||||
|
||||
// Cancel current editing entry or clears field if a new one.
|
||||
$scope.cancelEditEntry = function(entry) {
|
||||
if ($scope.savedItem == null) {
|
||||
if ($scope.savedItem === null) {
|
||||
// We are cancelling the new entry, just reset it.
|
||||
entry.id = null; // id should not change, but just in case...
|
||||
entry.pointed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user