diff --git a/accountant/frontend/static/js/accounts.js b/accountant/frontend/static/js/accounts.js index a814d0d..99c5bf1 100644 --- a/accountant/frontend/static/js/accounts.js +++ b/accountant/frontend/static/js/accounts.js @@ -48,8 +48,8 @@ angular.module('accountant') .controller( 'AccountController', [ - '$scope', 'Account', 'Notification', - function($scope, Account, Notification) { + '$scope', '$ngBootbox', 'Account', 'Notification', + function($scope, $ngBootbox, Account, Notification) { /* * Return the class for an account current value compared to authorized @@ -146,7 +146,7 @@ angular.module('accountant') $scope.delete = function(account, $index) { var id = account.id; - bootbox.confirm( + $ngBootbox.confirm( 'Voulez-vous supprimer le compte \\\'' + account.name + '\\\' ?', function(result) { if(result) { diff --git a/accountant/frontend/static/js/app.js b/accountant/frontend/static/js/app.js index 22f229b..82ac9a2 100644 --- a/accountant/frontend/static/js/app.js +++ b/accountant/frontend/static/js/app.js @@ -24,7 +24,8 @@ angular.module('accountant', [ 'http-auth-interceptor', 'ui-notification', 'Storage.Service', - 'xeditable' + 'xeditable', + 'ngBootbox' ]) .factory('sessionInjector', ['$storage', function($storage) { @@ -103,8 +104,8 @@ angular.module('accountant', [ }) .controller('MainController', [ - '$scope', '$rootScope', '$http', 'authService', '$storage', - function($scope, $rootScope, $http, authService, $storage) { + '$scope', '$rootScope', '$http', 'authService', '$storage', '$ngBootbox', + function($scope, $rootScope, $http, authService, $storage, $ngBootbox) { $scope.dialogShown = false; $scope.showLoginForm = function() { @@ -117,7 +118,7 @@ angular.module('accountant', [ $storage.clear(); - bootbox.dialog({ + $ngBootbox.customDialog({ title: 'Authentification requise', message: '