Sfoglia il codice sorgente

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

CauseFX 5 anni fa
parent
commit
726fb5b60b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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){