roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r797921 - in /roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor: Comments.jsp CommentsSidebar.jsp
Date Sun, 26 Jul 2009 12:26:51 GMT
Author: snoopdave
Date: Sun Jul 26 12:26:50 2009
New Revision: 797921

URL: http://svn.apache.org/viewvc?rev=797921&view=rev
Log:
removing dependence on Prototype, there were only three references all to the $() selector

Modified:
    roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/Comments.jsp
    roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/CommentsSidebar.jsp

Modified: roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/Comments.jsp
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/Comments.jsp?rev=797921&r1=797920&r2=797921&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/Comments.jsp (original)
+++ roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/Comments.jsp Sun Jul 26 12:26:50 2009
@@ -21,7 +21,7 @@
 <script type="text/javascript">
     <!--
     function setChecked(val, name) {
-        form = $('comments');
+        form = document.getElementById('comments');
         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/editor/CommentsSidebar.jsp
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/CommentsSidebar.jsp?rev=797921&r1=797920&r2=797921&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/CommentsSidebar.jsp (original)
+++ roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/CommentsSidebar.jsp Sun Jul 26 12:26:50
2009
@@ -52,7 +52,7 @@
             </script>
             <s:textfield name="bean.startDateString" size="12" />
             <a href="#" id="anchorCalStart" name="anchorCalStart"
-               onclick="calStart.select($('commentsQuery_bean_startDateString'),'anchorCalStart','MM/dd/yy');
return false">
+               onclick="calStart.select(document.getElementById('commentsQuery_bean_startDateString'),'anchorCalStart','MM/dd/yy');
return false">
             <img src='<s:url value="/images/calendar.png"/>' class="calIcon" alt="Calendar"
/></a>
     </div>
         
@@ -70,7 +70,7 @@
             </script>
             <s:textfield name="bean.endDateString" size="12" />
             <a href="#" id="anchorCalEnd" name="anchorCalEnd"
-               onclick="calEnd.select($('commentsQuery_bean_endDateString'),'anchorCalEnd','MM/dd/yy');
return false">
+               onclick="calEnd.select(document.getElementById('commentsQuery_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