Removed autocomplete plugin and use one provided by jquery.ui.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8650 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2011-01-14 15:16:44 +00:00
parent 5dd5713d69
commit af10b0ea1c
6 changed files with 51 additions and 18 deletions

View File

@ -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);

View File

@ -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 = $('<div></div>');
var poolLabel = $('<label>Disk pool:</label>');
var poolInput = $('<input type="text" id="diskPool" name="diskPool" title="You must give a disk pool. xCAT relies on DirMaint to allocate minidisks out of a pool of DASD volumes. These DASD volume pools are defined in the EXTENT CONTROL file."/>').autocomplete(diskPools.split(','));
var poolInput = $('<input type="text" id="diskPool" name="diskPool" title="You must give a disk pool. xCAT relies on DirMaint to allocate minidisks out of a pool of DASD volumes. These DASD volume pools are defined in the EXTENT CONTROL file."/>').autocomplete({
source: diskPools.split(',')
});
poolDiv.append(poolLabel);
poolDiv.append(poolInput);
cloneForm.append(poolDiv);

View File

@ -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 = $('<input type="text" title="You must give the group or region where the new image disk is to be created"/>').autocomplete(definedPools.split(','));
var diskPoolInput = $('<input type="text" title="You must give the group or region where the new image disk is to be created"/>').autocomplete({
source: definedPools.split(',')
});
var diskPool = $('<td></td>').append(diskPoolInput);
diskRow.append(diskPool);

View File

@ -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);

View File

@ -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);

View File

@ -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");