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 = $('').append(diskPoolInput); diskRow.append(diskPool); diff --git a/xCAT-UI/js/nodes/nodeset.js b/xCAT-UI/js/nodes/nodeset.js index a1966409c..dbe52f756 100644 --- a/xCAT-UI/js/nodes/nodeset.js +++ b/xCAT-UI/js/nodes/nodeset.js @@ -86,7 +86,9 @@ function loadNodesetPage(tgtNodes) { var tmp = $.cookie('osvers'); if (tmp) { // Turn on auto complete - $(this).autocomplete(tmp.split(',')); + $(this).autocomplete({ + source: tmp.split(',') + }); } }); os.append(osLabel); @@ -101,7 +103,9 @@ function loadNodesetPage(tgtNodes) { var tmp = $.cookie('osarchs'); if (tmp) { // Turn on auto complete - $(this).autocomplete(tmp.split(',')); + $(this).autocomplete({ + source: tmp.split(',') + }); } }); arch.append(archLabel); @@ -116,7 +120,9 @@ function loadNodesetPage(tgtNodes) { 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/nodes/updatenode.js b/xCAT-UI/js/nodes/updatenode.js index 90acc7d2b..8f9921432 100644 --- a/xCAT-UI/js/nodes/updatenode.js +++ b/xCAT-UI/js/nodes/updatenode.js @@ -233,7 +233,9 @@ function loadUpdatenodePage(tgtNodes) { var tmp = $.cookie('osvers'); if (tmp) { // Turn on auto complete - $(this).autocomplete(tmp.split(',')); + $(this).autocomplete({ + source: tmp.split(',') + }); } }); os.append(osLabel); diff --git a/xCAT-UI/js/ui.js b/xCAT-UI/js/ui.js index 7b599e159..39371b8f4 100644 --- a/xCAT-UI/js/ui.js +++ b/xCAT-UI/js/ui.js @@ -416,7 +416,6 @@ function initPage() { includeJs("js/jquery/jquery.dataTables.min.js"); includeJs("js/jquery/jquery.form.js"); includeJs("js/jquery/jquery.jeditable.js"); - includeJs("js/jquery/jquery.autocomplete.js"); includeJs("js/jquery/jquery.contextmenu.js"); includeJs("js/jquery/jquery.cookie.js"); includeJs("js/jquery/superfish.js");