ajax-only behavior for the wholist as well.
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 20 Mar 2012 00:22:16 +0000 (20:22 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Tue, 20 Mar 2012 00:22:16 +0000 (20:22 -0400)
webcit/static/t/summary/page.html
webcit/summary.c

index afe80323d5dff54cdf380ae3794af991bad8ed9f..089cdfb2704e429c3eae67a600ad02b40c45dfe2 100644 (file)
@@ -50,7 +50,9 @@
          <div class="boxlabel">        
            <?_("Who‘s&nbsp;online&nbsp;now")>
          </div><div class="boxcontent">
-           <div id="who_inner"><?=("who_summary")></div></div></div>
+           <div id="who_inner">
+               <img src="static/webcit_icons/throbber.gif">
+           </div></div></div>
       </td>
       <td width="33%">
        <div class="box">       
@@ -76,5 +78,5 @@
  new Ajax.PeriodicalUpdater('msg_inner', 'new_messages_html', { method: 'get', frequency: 60 }  );
  new Ajax.PeriodicalUpdater('tasks_inner', 'tasks_inner_html', { method: 'get', frequency: 120 }  );
  new Ajax.PeriodicalUpdater('calendar_inner', 'calendar_inner_html', { method: 'get', frequency: 90 }  );
- new Ajax.PeriodicalUpdater('do_template', 'template=who_summary', { method: 'get', frequency: 30 }  );
+ new Ajax.PeriodicalUpdater('who_inner', 'do_template?template=who_summary', { method: 'get', frequency: 30 }  );
 </script>
index 904f1db264fb5a50758e029d1dafe68717f9f608..d2eeb2e0703bdff5ed70f4d78007c6667f0849d1 100644 (file)
@@ -214,11 +214,9 @@ InitModule_SUMMARY
 (void)
 {
        RegisterNamespace("TIME:NOW", 0, 0, tmplput_output_date, NULL, CTX_NONE);
-
        WebcitAddUrlHandler(HKEY("summary"), "", 0, display_summary_page, ANONYMOUS);
        WebcitAddUrlHandler(HKEY("new_messages_html"), "", 0, new_messages_section, AJAX);
        WebcitAddUrlHandler(HKEY("tasks_inner_html"), "", 0, tasks_section, AJAX);
        WebcitAddUrlHandler(HKEY("calendar_inner_html"), "", 0, calendar_section, AJAX);
-
 }