[setup] Disable buttons only in the case they are present

* fixes #16648
This commit is contained in:
Morris Jobke 2015-06-01 11:01:42 +02:00
parent 896130b68d
commit b521109881
1 changed files with 4 additions and 1 deletions

View File

@ -59,7 +59,10 @@ $(document).ready(function() {
// Disable inputs
$(':submit', this).attr('disabled','disabled').val($(':submit', this).data('finishing'));
$('input', this).addClass('ui-state-disabled').attr('disabled','disabled');
// only disable buttons if they are present
if($('#selectDbType').find('.ui-button').length > 0) {
$('#selectDbType').buttonset('disable');
}
$('.strengthify-wrapper, .tipsy')
.css('-ms-filter', '"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"')
.css('filter', 'alpha(opacity=30)')