refactor(bs3): misc
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user