diff --git a/xCAT-UI/js/custom/zvm.js b/xCAT-UI/js/custom/zvm.js index f598373e4..10d9f7952 100644 --- a/xCAT-UI/js/custom/zvm.js +++ b/xCAT-UI/js/custom/zvm.js @@ -491,7 +491,7 @@ zvmPlugin.prototype.loadInventory = function(data) { var addr = $(this).text(); // Open dialog to confirm - var confirmDialog = $('
Are you sure?
Are you sure you want to remove this processor?
Are you sure?
Are you sure you want to remove this disk?
Are you sure?
Are you sure you want to remove this NIC?
' + msg + '
'); infoBar.append(msg); @@ -334,7 +334,7 @@ function createInfoBar(msg) { * @return Warning bar */ function createWarnBar(msg) { - var warnBar = $('' + msg + '
'); warnBar.append(msg); @@ -523,15 +523,28 @@ function writeRsp(rsp, pattern) { /** * Open a dialog and show given message * + * @param type + * Type of dialog, i.e. warn or info * @param msg * Message to show * @return Nothing */ -function openDialog(msg) { - var div = $('' + msg + '
' + msg + '
' + + '' + msg + '
' + +'