summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-06-01 11:01:42 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-06-01 11:01:42 +0200
commitb521109881766b07336b9777446c008ac54676c2 (patch)
tree091cea56fe1042cc975769ae975218f9b1698926 /core
parent896130b68d4712ec9ced3561036bc435e7e5a2dc (diff)
downloadnextcloud-server-b521109881766b07336b9777446c008ac54676c2.tar.gz
nextcloud-server-b521109881766b07336b9777446c008ac54676c2.zip
[setup] Disable buttons only in the case they are present
* fixes #16648
Diffstat (limited to 'core')
-rw-r--r--core/js/setup.js5
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)')