You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/11/27 16:47:47 UTC
svn commit: r479667 - in /incubator/roller/trunk:
src/org/apache/roller/webservices/json/HitCountDataServlet.java
web/WEB-INF/velocity/weblog.vm
Author: snoopdave
Date: Mon Nov 27 07:47:46 2006
New Revision: 479667
URL: http://svn.apache.org/viewvc?view=rev&rev=479667
Log:
What was I thinking?
Removed:
incubator/roller/trunk/src/org/apache/roller/webservices/json/HitCountDataServlet.java
Modified:
incubator/roller/trunk/web/WEB-INF/velocity/weblog.vm
Modified: incubator/roller/trunk/web/WEB-INF/velocity/weblog.vm
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/WEB-INF/velocity/weblog.vm?view=diff&rev=479667&r1=479666&r2=479667
==============================================================================
--- incubator/roller/trunk/web/WEB-INF/velocity/weblog.vm (original)
+++ incubator/roller/trunk/web/WEB-INF/velocity/weblog.vm Mon Nov 27 07:47:46 2006
@@ -820,32 +820,5 @@
#end
-#**
-Show current hit count for blog
-*#
-#macro(showHitCount $weblog)<div id="hitcount-$weblog.handle">$weblog.todaysHits</div>
- #_showCommonJavascript()
- <script type="text/javascript">
- <!--
- function updateHitCount(weblogHandle) {
- url = "$url.absoluteSite" + "/roller-services/json/hitcountdata?weblog=" + weblogHandle;
- if (isBusy) return;
- isBusy = true;
- http.open('get', url);
- http.onreadystatechange = updateHitCountResponse;
- http.send(null);
- }
- function updateHitCountResponse() {
- if (http.readyState == 4) {
- hitcount = eval("(" + http.responseText + ")");
- hitCountDiv = document.getElementById("hitcount-" + hitcount.handle);
- hitCountDiv.textContent = hitcount.count;
- }
- isBusy = false;
- }
- updateHitCount("$weblog.handle");
- -->
- </script>
-#end