diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 3608668b92..2a4adb8437 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -1268,7 +1268,7 @@ function stringJSON(json){ function notifySubmit(action, args, extra_param){ var action_text = action.replace(/OpenNebula\./,'').replace(/\./,' '); - var msg = '

'+tr("Submitted")+'

'; + var msg; if (!args || (typeof args == 'object' && args.constructor != Array)){ msg += action_text; @@ -1285,18 +1285,16 @@ function notifySubmit(action, args, extra_param){ //Notification on error function notifyError(msg){ - msg = "

"+tr("Error")+"

" + msg; $.jGrowl(msg, {theme: "jGrowl-notify-error", position: "bottom-right", sticky: true }); } //Standard notification function notifyMessage(msg){ - msg = "

"+tr("Info")+"

" + msg; $.jGrowl(msg, {theme: "jGrowl-notify-submit", position: "bottom-right"}); } function notifyCustom(title, msg, sticky) { - msg = "

" + title + "

" + msg; + msg = title + msg; $.jGrowl(msg, {theme: "jGrowl-notify-submit", position: "bottom-right", sticky: sticky }); } @@ -2038,7 +2036,7 @@ var Quotas = { default_quotas.VM_QUOTA.VM.VMS); var quotas_tab_html = - '
' + tr("VMs") + '
'+vms_bar+'

' + '
' + tr("VMs") + '

'+vms_bar+'

' return quotas_tab_html; } else { @@ -2053,7 +2051,7 @@ var Quotas = { default_quotas.VM_QUOTA.VM.CPU); var quotas_tab_html = - '
' + tr("CPU") + '
'+cpu_bar+'

' + '
' + tr("CPU") + '

'+cpu_bar+'

' return quotas_tab_html; } else { @@ -2068,7 +2066,7 @@ var Quotas = { default_quotas.VM_QUOTA.VM.MEMORY); var quotas_tab_html = - '
' + tr("Memory") + '
'+memory_bar+'

' + '
' + tr("Memory") + '

'+memory_bar+'

' return quotas_tab_html; } else { @@ -2083,7 +2081,7 @@ var Quotas = { default_quotas.VM_QUOTA.VM.VOLATILE_SIZE); var quotas_tab_html = - '
' + tr("Volatile disks") + '
'+volatile_bar+'

' + '
' + tr("Volatile disks") + '

'+volatile_bar+'

' return quotas_tab_html; } else { @@ -3731,5 +3729,11 @@ $(document).ready(function(){ //Start with the dashboard (supposing we have one). showTab('dashboard-tab'); + $(document).foundation({ + reveal : { + animation: 'fade', + animation_speed: 250 + } + }) });