add "disabled" class to read-only form buttons
This commit is contained in:
Родитель
a722b541e0
Коммит
d5cf6bef48
|
@ -15,7 +15,7 @@ $(document).ready(function() {
|
|||
.before(gettext('This feature is temporarily disabled while we ' +
|
||||
'perform website maintenance. Please check back ' +
|
||||
'a little later.'))
|
||||
.find('button, input, select, textarea').attr('disabled', true);
|
||||
.find('button, input, select, textarea').attr('disabled', true).addClass('disabled');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -16,6 +16,6 @@ $(document).ready(function() {
|
|||
.before(gettext('This feature is temporarily disabled while we ' +
|
||||
'perform website maintenance. Please check back ' +
|
||||
'a little later.'))
|
||||
.find('button, input, select, textarea').attr('disabled', true);
|
||||
.find('button, input, select, textarea').attr('disabled', true).addClass('disabled');
|
||||
}
|
||||
});
|
||||
|
|
|
@ -30,7 +30,7 @@ $(document).ready(function(){
|
|||
if (z.readonly) {
|
||||
$('form[method=post]')
|
||||
.before(gettext('This feature is temporarily disabled while we perform website maintenance. Please check back a little later.'))
|
||||
.find('input, button, select').attr('disabled', true);
|
||||
.find('input, button, select').attr('disabled', true).addClass('disabled');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче