refactor(bs3): misc

This commit is contained in:
Matteo Pagliazzi
2014-02-03 19:24:37 +01:00
parent 56133894d8
commit cdc13d2ffb
6 changed files with 30 additions and 77 deletions
+4 -2
View File
@@ -66,11 +66,13 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
// Open a modal from a template expression (like ng-click,...)
// Otherwise use the proper $modal.open
$rootScope.openModal = function(template, controller, scope){
$rootScope.openModal = function(template, controller, scope, keyboard, backdrop){
return $modal.open({
templateUrl: 'modals/' + template + '.html',
controller: controller, // optional
scope: scope // optional
scope: scope, // optional
keyboard: keyboard, // optional
backdrop: backdrop // optional
});
}