labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simo...@apache.org
Subject svn commit: r903126 - in /labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin: admin.js adminTemplate.css adminTemplate.html
Date Tue, 26 Jan 2010 08:40:17 GMT
Author: simoneg
Date: Tue Jan 26 08:40:17 2010
New Revision: 903126

URL: http://svn.apache.org/viewvc?rev=903126&view=rev
Log:
Javascript layer to prevent secondary clicks

Added:
    labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/admin.js
Modified:
    labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/adminTemplate.css
    labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/adminTemplate.html

Added: labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/admin.js
URL: http://svn.apache.org/viewvc/labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/admin.js?rev=903126&view=auto
==============================================================================
--- labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/admin.js
(added)
+++ labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/admin.js
Tue Jan 26 08:40:17 2010
@@ -0,0 +1,9 @@
+function Admin_createOverlay() {
+	$('#AdminOverlay').remove();
+	$('body', document).append($('<div id="AdminOverlay"></div>'));
+}
+
+$(document).ready(function() {
+	$('a:not(#zoneMenu a)').click(function() { Admin_createOverlay(); });
+	$('form').submit(function() { Admin_createOverlay(); });
+});

Modified: labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/adminTemplate.css
URL: http://svn.apache.org/viewvc/labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/adminTemplate.css?rev=903126&r1=903125&r2=903126&view=diff
==============================================================================
--- labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/adminTemplate.css
(original)
+++ labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/adminTemplate.css
Tue Jan 26 08:40:17 2010
@@ -86,3 +86,14 @@
 	background: #E0F7FF;
 }
 
+#AdminOverlay {
+	position: absolute;
+	top: 0px;
+	left: 0px;
+	width: 100%;
+	height: 100%;
+	background: gray;
+	z-index: 1000;
+	opacity: 0.3;
+}
+

Modified: labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/adminTemplate.html
URL: http://svn.apache.org/viewvc/labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/adminTemplate.html?rev=903126&r1=903125&r2=903126&view=diff
==============================================================================
--- labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/adminTemplate.html
(original)
+++ labs/magma/trunk/website-administration/src/main/resources/org/apache/magma/website/admin/adminTemplate.html
Tue Jan 26 08:40:17 2010
@@ -18,6 +18,7 @@
   <head>
     <link rel="stylesheet" href="adminTemplate.css" type="text/css"/>
     <link rel="stylesheet" href="magma:/common/falseAbsolute.css" type="text/css"/>
+    <script src="admin.js"/>
   </head>
   <body>
     <div id="zoneMenu"></div>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message