|
@@ -203,6 +203,16 @@
|
|
init();
|
|
init();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //Initialize system theme
|
|
|
|
+ loadPreference("file_explorer/theme",function(data){
|
|
|
|
+ if (data.error === undefined){
|
|
|
|
+ if (data == "darkTheme"){
|
|
|
|
+ $("body").addClass("darkTheme");
|
|
|
|
+ }else{
|
|
|
|
+ $("body").addClass("whiteTheme");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
|
|
function init(){
|
|
function init(){
|
|
//There are something to load. Load the vroot properties
|
|
//There are something to load. Load the vroot properties
|
|
@@ -293,17 +303,6 @@
|
|
success: function(data){
|
|
success: function(data){
|
|
callback(data);
|
|
callback(data);
|
|
fileInfo = data;
|
|
fileInfo = data;
|
|
- //Initialize system theme
|
|
|
|
- loadPreference("file_explorer/theme",function(data){
|
|
|
|
- if (data.error === undefined){
|
|
|
|
- if (data == "darkTheme"){
|
|
|
|
- $("body").addClass("darkTheme");
|
|
|
|
- }else{
|
|
|
|
- $("body").addClass("whiteTheme");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|