From 51ee97f020a338740db839097956ae3b79bc93d0 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Mon, 29 Jul 2013 01:01:49 +0200 Subject: [PATCH] Reviewed layout. --- src/static/js/accounts.js | 4 ++ src/templates/layout.html | 83 ++++++++++++++++++++------------------- 2 files changed, 46 insertions(+), 41 deletions(-) diff --git a/src/static/js/accounts.js b/src/static/js/accounts.js index 46a0ffb..f70601a 100644 --- a/src/static/js/accounts.js +++ b/src/static/js/accounts.js @@ -41,6 +41,10 @@ var AccountController = function($scope, $http, $rootScope, $window) { }; $scope.valueClass = function(account, value) { + if(!account) { + return + } + if(value < account.authorized_overdraft) { return "text-error"; } else if(value < 0) { diff --git a/src/templates/layout.html b/src/templates/layout.html index 12dfc37..2d10b6e 100644 --- a/src/templates/layout.html +++ b/src/templates/layout.html @@ -33,54 +33,54 @@ - - -