Explorar o código

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

CauseFX %!s(int64=5) %!d(string=hai) anos
pai
achega
726fb5b60b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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){