1
0
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:
Hector Sanjuan 2011-04-01 02:29:45 +02:00 committed by Jaime Melis
parent cd7d62998d
commit a4dd6e3a4d

View File

@ -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;