admin: msgbox can contains lists
This commit is contained in:
parent
33bf5a0f34
commit
31b80a5b2a
3 changed files with 13 additions and 2 deletions
|
@ -275,7 +275,8 @@ angular.module("FICApp")
|
|||
b.cancel = function() {
|
||||
$scope.boxes.pop($scope.boxes.indexOf(b));
|
||||
}
|
||||
$timeout(function() { b.cancel(); }, b.timeout);
|
||||
if (b.timeout >= 0)
|
||||
$timeout(function() { b.cancel(); }, b.timeout);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -288,10 +289,14 @@ angular.module("FICApp")
|
|||
var mybox = {
|
||||
'kind': kind,
|
||||
'title': title,
|
||||
'msg': msg,
|
||||
'timeout': tmout,
|
||||
};
|
||||
|
||||
if (Array.isArray(msg))
|
||||
mybox['list'] = msg;
|
||||
else
|
||||
mybox['msg'] = msg;
|
||||
|
||||
$rootScope._newBoxes.push(mybox);
|
||||
};
|
||||
$rootScope.newYesNoBox = function(kind, title, msg, yesFunc, noFunc, tmout) {
|
||||
|
|
Reference in a new issue