diff --git a/xCAT-UI/js/custom/customUtils.js b/xCAT-UI/js/custom/customUtils.js index 771ca5766..234b61175 100644 --- a/xCAT-UI/js/custom/customUtils.js +++ b/xCAT-UI/js/custom/customUtils.js @@ -204,7 +204,9 @@ function createProvisionExisting(plugin, inst) { var tmp = $.cookie('osvers'); if (tmp) { // Turn on auto complete - $(this).autocomplete(tmp.split(',')); + $(this).autocomplete({ + source: tmp.split(',') + }); } }); os.append(osLabel); @@ -219,7 +221,9 @@ function createProvisionExisting(plugin, inst) { var tmp = $.cookie('osarchs'); if (tmp) { // Turn on auto complete - $(this).autocomplete(tmp.split(',')); + $(this).autocomplete({ + source: tmp.split(',') + }); } }); arch.append(archLabel); @@ -234,7 +238,9 @@ function createProvisionExisting(plugin, inst) { var tmp = $.cookie('profiles'); if (tmp) { // Turn on auto complete - $(this).autocomplete(tmp.split(',')); + $(this).autocomplete({ + source: tmp.split(',') + }); } }); profile.append(profileLabel); @@ -277,7 +283,9 @@ function createProvisionNew(plugin, inst) { var groupNames = $.cookie('groups'); if (groupNames) { // Turn on auto complete - $(this).autocomplete(groupNames.split(',')); + $(this).autocomplete({ + source: groupNames.split(',') + }); } }); group.append(groupLabel); @@ -318,7 +326,9 @@ function createProvisionNew(plugin, inst) { var tmp = $.cookie('osvers'); if (tmp) { // Turn on auto complete - $(this).autocomplete(tmp.split(',')); + $(this).autocomplete({ + source: tmp.split(',') + }); } }); os.append(osLabel); @@ -333,7 +343,9 @@ function createProvisionNew(plugin, inst) { var tmp = $.cookie('osarchs'); if (tmp) { // Turn on auto complete - $(this).autocomplete(tmp.split(',')); + $(this).autocomplete({ + source: tmp.split(',') + }); } }); arch.append(archLabel); @@ -348,7 +360,9 @@ function createProvisionNew(plugin, inst) { var tmp = $.cookie('profiles'); if (tmp) { // Turn on auto complete - $(this).autocomplete(tmp.split(',')); + $(this).autocomplete({ + source: tmp.split(',') + }); } }); profile.append(profileLabel); diff --git a/xCAT-UI/js/custom/zvm.js b/xCAT-UI/js/custom/zvm.js index e041a1d8f..75ff528bf 100644 --- a/xCAT-UI/js/custom/zvm.js +++ b/xCAT-UI/js/custom/zvm.js @@ -72,7 +72,9 @@ zvmPlugin.prototype.loadClonePage = function(node) { var groupNames = $.cookie('groups'); if (groupNames) { // Turn on auto complete - $(this).autocomplete(groupNames.split(',')); + $(this).autocomplete({ + source: groupNames.split(',') + }); } }); group.append(groupLabel); @@ -86,7 +88,9 @@ zvmPlugin.prototype.loadClonePage = function(node) { // Create disk pool input var poolDiv = $('
'); var poolLabel = $(''); - var poolInput = $('').autocomplete(diskPools.split(',')); + var poolInput = $('').autocomplete({ + source: diskPools.split(',') + }); poolDiv.append(poolLabel); poolDiv.append(poolInput); cloneForm.append(poolDiv); diff --git a/xCAT-UI/js/custom/zvmUtils.js b/xCAT-UI/js/custom/zvmUtils.js index f9df486f6..a99271a07 100644 --- a/xCAT-UI/js/custom/zvmUtils.js +++ b/xCAT-UI/js/custom/zvmUtils.js @@ -2076,7 +2076,9 @@ function createZProvisionExisting(inst) { var imageNames = $.cookie('imagenames'); if (imageNames) { // Turn on auto complete - $(this).autocomplete(imageNames.split(',')); + $(this).autocomplete({ + source: imageNames.split(',') + }); } }); os.append(osLabel); @@ -2216,7 +2218,9 @@ function createZProvisionNew(inst) { var groupNames = $.cookie('groups'); if (groupNames) { // Turn on auto complete - $(this).autocomplete(groupNames.split(',')); + $(this).autocomplete({ + source: groupNames.split(',') + }); } }); group.append(groupLabel); @@ -2272,7 +2276,9 @@ function createZProvisionNew(inst) { var imageNames = $.cookie('imagenames'); if (imageNames) { // Turn on auto complete - $(this).autocomplete(imageNames.split(',')); + $(this).autocomplete({ + source: imageNames.split(',') + }); } }); os.append(osLabel); @@ -2357,7 +2363,9 @@ function createZProvisionNew(inst) { // Create disk pool input // Turn on auto complete for disk pool - var diskPoolInput = $('').autocomplete(definedPools.split(',')); + var diskPoolInput = $('').autocomplete({ + source: definedPools.split(',') + }); var diskPool = $('