roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghu...@apache.org
Subject svn commit: r1240758 - in /roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor: EntryAdd.jsp EntryEdit.jsp
Date Sun, 05 Feb 2012 16:08:55 GMT
Author: ghuber
Date: Sun Feb  5 16:08:55 2012
New Revision: 1240758

URL: http://svn.apache.org/viewvc?rev=1240758&view=rev
Log:
Move js above yui as when below does not execute when yui tags code not active.

Modified:
    roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor/EntryAdd.jsp
    roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor/EntryEdit.jsp

Modified: roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor/EntryAdd.jsp
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor/EntryAdd.jsp?rev=1240758&r1=1240757&r2=1240758&view=diff
==============================================================================
--- roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor/EntryAdd.jsp (original)
+++ roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor/EntryAdd.jsp Sun Feb
 5 16:08:55 2012
@@ -213,6 +213,19 @@
 </s:form>
 
 <script type="text/javascript">
+//Get cookie to determine state of control
+if (getCookie('control-miscControl') != null) {
+    if(getCookie('control-miscControl') == 'true'){
+        toggle('miscControl');
+        togglePlusMinus('imiscControl');
+    }
+}
+if (getCookie('control-pluginControl') != null) {
+    if(getCookie('control-pluginControl') == 'true'){
+        toggle('pluginControl');
+        togglePlusMinus('ipluginControl');
+    }
+}
 YAHOO.example.RemoteCustomRequest = function() {
     // Use an XHRDataSource
     var oDS = new YAHOO.util.XHRDataSource('<s:property value="jsonAutocompleteUrl" />');
@@ -240,17 +253,4 @@ YAHOO.example.RemoteCustomRequest = func
         oAC: oAC
     };
 }();
-//Get cookie to determine state of control
-if (getCookie('control-miscControl') != null) {
-    if(getCookie('control-miscControl') == 'true'){
-        toggle('miscControl');
-        togglePlusMinus('imiscControl');
-    }
-}
-if (getCookie('control-pluginControl') != null) {
-    if(getCookie('control-pluginControl') == 'true'){
-        toggle('pluginControl');
-        togglePlusMinus('ipluginControl');
-    }
-}
 </script>

Modified: roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor/EntryEdit.jsp
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor/EntryEdit.jsp?rev=1240758&r1=1240757&r2=1240758&view=diff
==============================================================================
--- roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor/EntryEdit.jsp (original)
+++ roller/trunk/weblogger-webapp/src/main/webapp/WEB-INF/jsps/editor/EntryEdit.jsp Sun Feb
 5 16:08:55 2012
@@ -292,6 +292,19 @@ function fullPreviewMode() {
 </s:form>
 
 <script type="text/javascript">
+//Get cookie to determine state of control
+if (getCookie('control-miscControl') != null) {
+    if(getCookie('control-miscControl') == 'true'){
+        toggle('miscControl');
+        togglePlusMinus('imiscControl');
+    }
+}
+if (getCookie('control-pluginControl') != null) {
+    if(getCookie('control-pluginControl') == 'true'){
+        toggle('pluginControl');
+        togglePlusMinus('ipluginControl');
+    }
+}
 YAHOO.example.RemoteCustomRequest = function() {
     // Use an XHRDataSource
     var oDS = new YAHOO.util.XHRDataSource("<s:property value="jsonAutocompleteUrl" />");
@@ -319,17 +332,4 @@ YAHOO.example.RemoteCustomRequest = func
         oAC: oAC
     };
 }();
-//Get cookie to determine state of control
-if (getCookie('control-miscControl') != null) {
-    if(getCookie('control-miscControl') == 'true'){
-        toggle('miscControl');
-        togglePlusMinus('imiscControl');
-    }
-}
-if (getCookie('control-pluginControl') != null) {
-    if(getCookie('control-pluginControl') == 'true'){
-        toggle('pluginControl');
-        togglePlusMinus('ipluginControl');
-    }
-}
 </script>



Mime
View raw message