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:
parent
586a21035c
commit
1c26c53003
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user