Просмотр исходного кода

Move custom java to execute after appearance

causefx 7 лет назад
Родитель
Сommit
831c685d41
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      js/functions.js

+ 3 - 1
js/functions.js

@@ -3199,13 +3199,14 @@ function loadAppearance(appearance){
     if(appearance.customCss !== ''){
         $('#custom-css').html(appearance.customCss);
     }
+}
+function loadCustomJava(appearance){
     if(appearance.customThemeJava !== ''){
         $('#custom-theme-javascript').html(appearance.customThemeJava);
     }
     if(appearance.customJava !== ''){
         $('#custom-javascript').html(appearance.customJava);
     }
-
 }
 function clearForm(form){
 	$(form+" input[type=text]").each(function() {
@@ -5948,6 +5949,7 @@ function launch(){
                     organizrSpecialSettings(json);
                     getPingList(json);
                 }
+                loadCustomJava(json.appearance);
 				break;
 			default:
 				console.error('Organizr Function: Action not set or defined');