mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #554: Added array type check
Arrays arguments are objects as well, but we can print them easily though.
This commit is contained in:
parent
cd7d62998d
commit
a4dd6e3a4d
@ -167,7 +167,7 @@ function notifySubmit(action, args, extra_param){
|
||||
var action_text = action.replace(/OpenNebula\./,'').replace(/\./,' ');
|
||||
|
||||
var msg = "<h1>Submitted</h1>";
|
||||
if (typeof args == 'object'){
|
||||
if (!args || (typeof args == 'object' && args.constructor != Array)){
|
||||
msg += action_text;
|
||||
} else {
|
||||
msg += action_text + ": " + args;
|
||||
|
Loading…
x
Reference in New Issue
Block a user