From c8cfed20181db4c789d946374cd0e6ac5d16f034 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 10 Jun 2017 18:03:08 +0200 Subject: [PATCH] Fix template paths. --- accountant-ui/js/accounts.js | 2 +- accountant-ui/js/app.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/accountant-ui/js/accounts.js b/accountant-ui/js/accounts.js index dadd313..1450c57 100644 --- a/accountant-ui/js/accounts.js +++ b/accountant-ui/js/accounts.js @@ -240,7 +240,7 @@ var accountModule = angular.module('accountant.accounts', [ $ngBootbox.customDialog({ scope: scope, title: title, - templateUrl: 'views/account.form.tmpl.html', + templateUrl: '/views/account.form.tmpl.html', onEscape: true, buttons: { save: { diff --git a/accountant-ui/js/app.js b/accountant-ui/js/app.js index 16190af..c67d800 100644 --- a/accountant-ui/js/app.js +++ b/accountant-ui/js/app.js @@ -82,17 +82,17 @@ var app = angular.module('accountant', [ // Defining template and controller in function of route. $routeProvider .when('/account/:accountId/operations', { - templateUrl: 'views/operations.html', + templateUrl: '/views/operations.html', controller: 'OperationController', controllerAs: 'operationsCtrl' }) .when('/account/:accountId/scheduler', { - templateUrl: 'views/scheduler.html', + templateUrl: '/views/scheduler.html', controller: 'SchedulerController', controllerAs: 'schedulerCtrl' }) .when('/accounts', { - templateUrl: 'views/accounts.html', + templateUrl: '/views/accounts.html', controller: 'AccountController', controllerAs: 'accountsCtrl' }) @@ -149,7 +149,7 @@ var app = angular.module('accountant', [ $ngBootbox.customDialog({ title: 'Authentification requise', - templateUrl: 'views/login.tmpl.html', + templateUrl: '/views/login.tmpl.html', buttons: { login: { label: 'Login',