1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Fixes bug #554: Notify shows [object object]

If the argument for an action is an object, do not add it to the notify notice.
This commit is contained in:
Hector Sanjuan 2011-04-01 00:27:25 +02:00 committed by Jaime Melis
parent 586a21035c
commit 1c26c53003

View File

@ -164,7 +164,11 @@ function notifySubmit(action, args, extra_param){
var action_text = action.replace(/OpenNebula\./,'').replace(/\./,' ');
var msg = "<h1>Submitted</h1>";
msg += action_text + ": " + args;
if (typeof args == 'object'){
msg += action_text;
} else {
msg += action_text + ": " + args;
}
if (extra_param != null)
msg += " >> " + extra_param;