roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r797942 - in /roller/trunk/apps/weblogger/web/WEB-INF/jsps: admin/GlobalCommentManagement.jsp admin/GlobalCommentManagementSidebar.jsp core/CreateWeblog.jsp editor/EntriesSidebar.jsp
Date Sun, 26 Jul 2009 14:47:45 GMT
Author: snoopdave
Date: Sun Jul 26 14:47:44 2009
New Revision: 797942

URL: http://svn.apache.org/viewvc?rev=797942&view=rev
Log:
removing dependence on Prototype in these JSPs, there were only a couple of references; all
to the $() selector

Modified:
    roller/trunk/apps/weblogger/web/WEB-INF/jsps/admin/GlobalCommentManagement.jsp
    roller/trunk/apps/weblogger/web/WEB-INF/jsps/admin/GlobalCommentManagementSidebar.jsp
    roller/trunk/apps/weblogger/web/WEB-INF/jsps/core/CreateWeblog.jsp
    roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/EntriesSidebar.jsp

Modified: roller/trunk/apps/weblogger/web/WEB-INF/jsps/admin/GlobalCommentManagement.jsp
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/web/WEB-INF/jsps/admin/GlobalCommentManagement.jsp?rev=797942&r1=797941&r2=797942&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/web/WEB-INF/jsps/admin/GlobalCommentManagement.jsp (original)
+++ roller/trunk/apps/weblogger/web/WEB-INF/jsps/admin/GlobalCommentManagement.jsp Sun Jul
26 14:47:44 2009
@@ -21,7 +21,7 @@
 <script type="text/javascript">
 <!-- 
 function setChecked(val, name) {
-    form = $('globalCommentManagement');
+    form = document.getElementById('globalCommentManagement');
     len = form.elements.length;
     var i=0;
     for( i=0 ; i<len ; i++) {
@@ -63,9 +63,9 @@
 function handleCommentResponse() {
     if (http.readyState == 4) {
         comment = eval("(" + http.responseText + ")"); 
-        commentDiv = $("comment-" + comment.id);
+        commentDiv = document.getElementById("comment-" + comment.id);
         commentDiv.textContent = comment.content;
-        linkDiv = $("link-" + comment.id);
+        linkDiv = document.getElementById("link-" + comment.id);
         linkDiv.parentNode.removeChild(linkDiv);
     }
     isBusy = false;

Modified: roller/trunk/apps/weblogger/web/WEB-INF/jsps/admin/GlobalCommentManagementSidebar.jsp
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/web/WEB-INF/jsps/admin/GlobalCommentManagementSidebar.jsp?rev=797942&r1=797941&r2=797942&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/web/WEB-INF/jsps/admin/GlobalCommentManagementSidebar.jsp
(original)
+++ roller/trunk/apps/weblogger/web/WEB-INF/jsps/admin/GlobalCommentManagementSidebar.jsp
Sun Jul 26 14:47:44 2009
@@ -51,7 +51,7 @@
             </script>
             <s:textfield name="bean.startDateString" size="12" />
             <a href="#" id="anchorCalStart" name="anchorCalStart"
-               onclick="calStart.select($('comments_bean_startDateString'),'anchorCalStart','MM/dd/yy');
return false">
+               onclick="calStart.select(document.getElementById('comments_bean_startDateString'),'anchorCalStart','MM/dd/yy');
return false">
             <img src='<s:url value="/images/calendar.png"/>' class="calIcon" alt="Calendar"
/></a>
     </div>
         
@@ -69,7 +69,7 @@
             </script>
             <s:textfield name="bean.endDateString" size="12" />
             <a href="#" id="anchorCalEnd" name="anchorCalEnd"
-               onclick="calEnd.select($('comments_bean_endDateString'),'anchorCalEnd','MM/dd/yy');
return false">
+               onclick="calEnd.select(document.getElementById('comments_bean_endDateString'),'anchorCalEnd','MM/dd/yy');
return false">
             <img src='<s:url value="/images/calendar.png"/>' class="calIcon" alt="Calendar"
/></a>
     </div>
     <br />

Modified: roller/trunk/apps/weblogger/web/WEB-INF/jsps/core/CreateWeblog.jsp
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/web/WEB-INF/jsps/core/CreateWeblog.jsp?rev=797942&r1=797941&r2=797942&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/web/WEB-INF/jsps/core/CreateWeblog.jsp (original)
+++ roller/trunk/apps/weblogger/web/WEB-INF/jsps/core/CreateWeblog.jsp Sun Jul 26 14:47:44
2009
@@ -23,7 +23,7 @@
     document.preview.src="<s:property value="siteURL" />/roller-ui/authoring/previewtheme?theme="+theme;
 }
 function handlePreview(handle) {
-    previewSpan = $("handlePreview");
+    previewSpan = document.getElementById("handlePreview");
     var n1 = previewSpan.childNodes[0];
     var n2 = document.createTextNode(handle.value);
     if (handle.value == null) {

Modified: roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/EntriesSidebar.jsp
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/EntriesSidebar.jsp?rev=797942&r1=797941&r2=797942&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/EntriesSidebar.jsp (original)
+++ roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/EntriesSidebar.jsp Sun Jul 26 14:47:44
2009
@@ -83,7 +83,7 @@
                         </script>
                         <s:textfield name="bean.startDateString" size="12" />
                         <a href="#" id="anchorCalStart" name="anchorCalStart"
-                           onclick="calStart.select($('entries_bean_startDateString'),'anchorCalStart','MM/dd/yy');
return false">
+                           onclick="calStart.select(document.getElementById('entries_bean_startDateString'),'anchorCalStart','MM/dd/yy');
return false">
                         <img src='<s:url value="/images/calendar.png"/>' class="calIcon"
alt="Calendar" /></a>
                     </div>
                     
@@ -101,7 +101,7 @@
                         </script>
                         <s:textfield name="bean.endDateString" size="12" />
                         <a href="#" id="anchorCalEnd" name="anchorCalEnd"
-                           onclick="calEnd.select($('entries_bean_endDateString'),'anchorCalEnd','MM/dd/yy');
return false">
+                           onclick="calEnd.select(document.getElementById('entries_bean_endDateString'),'anchorCalEnd','MM/dd/yy');
return false">
                         <img src='<s:url value="/images/calendar.png"/>' class="calIcon"
alt="Calendar" /></a>
                     </div>
                     <br />



Mime
View raw message