diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-06-01 11:01:42 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-06-01 11:01:42 +0200 |
commit | b521109881766b07336b9777446c008ac54676c2 (patch) | |
tree | 091cea56fe1042cc975769ae975218f9b1698926 | |
parent | 896130b68d4712ec9ced3561036bc435e7e5a2dc (diff) | |
download | nextcloud-server-b521109881766b07336b9777446c008ac54676c2.tar.gz nextcloud-server-b521109881766b07336b9777446c008ac54676c2.zip |
[setup] Disable buttons only in the case they are present
* fixes #16648
-rw-r--r-- | core/js/setup.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/setup.js b/core/js/setup.js index fd2547867ff..cfa11a99c3a 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)') |