Disable all inputs and Ok button when Ok button is clicked.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8560 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2011-01-05 23:31:53 +00:00
parent 940450f8c1
commit 170db879eb
4 changed files with 9 additions and 4 deletions

View File

@ -1106,7 +1106,8 @@ function loadUnlockPage(tgtNodes) {
// Show status bar
statusBar.show();
// Disable Ok button
// Disable all inputs and Ok button
$('#' + newTabId + ' input').attr('disabled', 'disabled');
$(this).attr('disabled', 'true');
} else {
// Show warning message

View File

@ -171,7 +171,9 @@ function loadNodesetPage(tgtNodes) {
var arch = $('#' + tabId + ' input[name=arch]').val();
var profile = $('#' + tabId + ' input[name=profile]').val();
// Disable Ok button
// Disable all inputs, selects, and Ok button
inputs.attr('disabled', 'disabled');
$('#' + tabId + ' select').attr('disabled', 'disabled');
$(this).attr('disabled', 'true');
/**

View File

@ -164,7 +164,8 @@ function loadNetbootPage(tgtNodes) {
optStr += 'ipl=' + ipl.val();
}
// Disable Ok button
// Disable all inputs and Ok button
$('#' + newTabId + ' input').attr('disabled', 'disabled');
$(this).attr('disabled', 'true');
/**

View File

@ -346,7 +346,8 @@ function loadUpdatenodePage(tgtNodes) {
// Get nodes
var tgts = $('#' + newTabId + ' input[name=target]').val();
// Disable Ok button
// Disable all inputs and Ok button
$('#' + newTabId + ' input').attr('disabled', 'disabled');
$(this).attr('disabled', 'true');
/**