Browse Source

Fixed checkForUpdates and improved version number in login

Tobias Reich 9 years ago
parent
commit
2001f172fa
4 changed files with 10 additions and 7 deletions
  1. 0 0
      dist/main.css
  2. 0 0
      dist/main.js
  3. 5 3
      src/scripts/lychee.js
  4. 5 4
      src/styles/_message.scss

File diff suppressed because it is too large
+ 0 - 0
dist/main.css


File diff suppressed because it is too large
+ 0 - 0
dist/main.js


+ 5 - 3
src/scripts/lychee.js

@@ -17,7 +17,7 @@ lychee = {
 	viewMode:		false,
 	debugMode:		false,
 
-	checkForUpdates:false,
+	checkForUpdates:'1',
 	username:		'',
 	sorting:		'',
 	location:		'',
@@ -54,15 +54,17 @@ lychee.init = function() {
 			lychee.sorting			= data.config.sorting			|| '';
 			lychee.dropboxKey		= data.config.dropboxKey		|| '';
 			lychee.location			= data.config.location			|| '';
-			lychee.checkForUpdates	= data.config.checkForUpdates	|| true;
+			lychee.checkForUpdates	= data.config.checkForUpdates	|| '1';
 
-			// No username and password
+			// Show dialog when there is no username and password
 			if (data.config.login===false) settings.createLogin();
 
 		} else if (data.status===1) {
 
 			// Logged out
 
+			lychee.checkForUpdates = data.config.checkForUpdates || '1';
+
 			lychee.setMode('public');
 
 		} else if (data.status===0) {

+ 5 - 4
src/styles/_message.scss

@@ -174,14 +174,15 @@
 
 	/* Version ------------------------------------------------*/
 	.version {
-		padding: 0px 30px 20px;
-		color: #888;
+		margin: -5px 0 0;
+		padding: 0 30px 30px !important;
+		color: white(.3);
 		font-size: 12px;
-		text-align: left;
+		text-align: right;
 
 		span { display: none; }
 
-		span a { color: #888; }
+		span a { color: white(.3); }
 	}
 
 	/* Title ------------------------------------------------*/

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