Browse Source

fix Can't set correct tab type after re-adding the homepage (#1671)

CauseFX 4 years ago
parent
commit
726fb5b60b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      js/functions.js

+ 1 - 0
js/functions.js

@@ -3013,6 +3013,7 @@ function buildTabTypeSelect(tabID, typeID, disabled){
     ];
 	var typeSelect = '';
 	var selected = '';
+	disabled = (disabled == 'disabled' && typeID !== 0) ? null : disabled;
 	$.each(array, function(i,v) {
 		selected = '';
 		if(v.type_id == typeID){