Browse Source

possible fix for some users on install wizard

causefx 7 years ago
parent
commit
836b4c61c5
5 changed files with 13 additions and 5 deletions
  1. 1 1
      api/functions/config-functions.php
  2. 1 1
      api/functions/organizr-functions.php
  3. 7 0
      css/organizr.css
  4. 1 0
      js/custom.js
  5. 3 3
      js/simplebar.js

+ 1 - 1
api/functions/config-functions.php

@@ -85,7 +85,7 @@ function configLazy()
 	if (file_exists($GLOBALS['userConfigPath'])) {
 		$config = fillDefaultConfig(loadConfig($GLOBALS['userConfigPath']));
 	} else {
-		$config = loadConfig($GLOBALS['defaultConfigPath']);
+		$config = fillDefaultConfig(loadConfig($GLOBALS['defaultConfigPath']));
 	}
 	if (is_array($config)) {
 		defineConfig($config);

+ 1 - 1
api/functions/organizr-functions.php

@@ -83,7 +83,7 @@ function organizrSpecialSettings()
 			'minimalLoginScreen' => $GLOBALS['minimalLoginScreen'],
 			'unsortedTabs' => $GLOBALS['unsortedTabs'],
 			'authBackend' => $GLOBALS['authBackend'],
-			'newMessageSound' => $GLOBALS['CHAT-newMessageSound-include'],
+			'newMessageSound' => (isset($GLOBALS['CHAT-newMessageSound-include'])) ? $GLOBALS['CHAT-newMessageSound-include'] : '',
 			'uuid' => $GLOBALS['uuid'],
 		)
 	);

+ 7 - 0
css/organizr.css

@@ -1200,4 +1200,11 @@ html {
     max-height: 568px;
     min-height: 568px;
 }
+.internal-listing {
+    min-height: inherit;
+    max-height: inherit;
+}
+.internal-listing .simplebar-track.horizontal {
+    display: none;
+}
 */

+ 1 - 0
js/custom.js

@@ -4,6 +4,7 @@ var idleTime = 0;
 var hasCookie = false;
 $(document).ajaxComplete(function () {
     pageLoad();
+    //new SimpleBar($('.internal-listing')[0]);
 });
 $(document).ready(function () {
     pageLoad();

File diff suppressed because it is too large
+ 3 - 3
js/simplebar.js


Some files were not shown because too many files changed in this diff