[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6030] trunk/UI



Revision: 6030
          http://sourceforge.net/p/ledger-smb/code/6030
Author:   einhverfr
Date:     2013-09-15 03:28:30 +0000 (Sun, 15 Sep 2013)
Log Message:
-----------
Login indicator showing now, just a simple one.  Others could use css to show something different.

Modified Paths:
--------------
    trunk/UI/login.css
    trunk/UI/login.html
    trunk/UI/login.js

Modified: trunk/UI/login.css
===================================================================
--- trunk/UI/login.css	2013-09-15 02:49:54 UTC (rev 6029)
+++ trunk/UI/login.css	2013-09-15 03:28:30 UTC (rev 6030)
@@ -50,3 +50,12 @@
 button {
     margin-top: 10px;
 }
+
+div.login-indicator {
+    font-size: x-large;
+    margin-left: auto;
+    margin-right: auto;
+    width: 100%
+    text-align: center;
+    visibility: hidden;
+}

Modified: trunk/UI/login.html
===================================================================
--- trunk/UI/login.html	2013-09-15 02:49:54 UTC (rev 6029)
+++ trunk/UI/login.html	2013-09-15 03:28:30 UTC (rev 6030)
@@ -51,6 +51,9 @@
 				</div>
 				<button type="submit" name="action" value="login" accesskey="l"><?lsmb text('Login') ?></button>
 			</div>
+                <div id="indicator" class="login-indicator">
+                  <?lsmb text('Logging in.  Please wait.') ?>
+                </div>
 		</div></div>
 		</form>
 	</center>

Modified: trunk/UI/login.js
===================================================================
--- trunk/UI/login.js	2013-09-15 02:49:54 UTC (rev 6029)
+++ trunk/UI/login.js	2013-09-15 03:28:30 UTC (rev 6030)
@@ -1,4 +1,17 @@
+
+
+function show_indicator() {
+        var e = document.getElementById('indicator');
+        e.style.visibility='visible';
+}
+
 function submit_form() {
+        window.setTimeout(show_indicator, 0);
+        window.setTimeout(send_form, 10);
+        return false;
+}
+
+function send_form() {
 	var http = get_http_request_object();
     var username = document.login.login.value;
 	var password = document.login.password.value;
@@ -16,7 +29,6 @@
 		return false;
 	}
 	document.location=document.login.action.value+".pl?action=login&company="+document.login.company.value;
-	return false;//otherwise 2 login's in parallell!
 }
 
 function check_auth() {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits