From b521109881766b07336b9777446c008ac54676c2 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 1 Jun 2015 11:01:42 +0200 Subject: [PATCH] [setup] Disable buttons only in the case they are present * fixes #16648 --- core/js/setup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/js/setup.js b/core/js/setup.js index fd2547867f..cfa11a99c3 100644 --- a/core/js/setup.js +++ b/core/js/setup.js @@ -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'); - $('#selectDbType').buttonset('disable'); + // 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)')