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

feature #2746: Fix undefined message string

This commit is contained in:
Daniel Molina 2014-03-17 10:07:52 +01:00
parent 60192acc0a
commit 719e4db608

View File

@ -1272,7 +1272,7 @@ function stringJSON(json){
function notifySubmit(action, args, extra_param){
var action_text = action.replace(/OpenNebula\./,'').replace(/\./,' ');
var msg;
var msg = "";
if (!args || (typeof args == 'object' && args.constructor != Array)){
msg += action_text;
@ -1298,7 +1298,7 @@ function notifyMessage(msg){
}
function notifyCustom(title, msg, sticky) {
msg = title + msg;
msg = (title ? title : "") + msg;
$.jGrowl(msg, {theme: "jGrowl-notify-submit", position: "bottom-right", sticky: sticky });
}