void jsonMessageList(void) {
const StrBuf *room = sbstr("room");
WC->is_ajax = 1;
- smart_goto(room);
+ long oper = (havebstr("query")) ? do_search : readnew;
+ gotoroom(room);
+ readloop(oper);
WC->is_ajax = 0;
}
if (!is_safe_mode) {
resortAndDisplay(sortRowsByDateDescending);
} else {
+ setupPageSelector();
resortAndDisplay(null);
}
- loadingMsg.parentNode.removeChild(loadingMsg);
- setupPageSelector();
- query = "";
+ if (loadingMsg.parentNode != null) {
+ loadingMsg.parentNode.removeChild(loadingMsg);
+ }
}
function resortAndDisplay(sortMode) {
var start = new Date();
function getPage(event) {
var target = event.target;
startmsg = target.options.item(target.selectedIndex).value;
+ //query = ""; // We are getting a page from the _entire_ msg list, don't query
getMessages();
}
function takeOverSearchOMatic() {
<?_("from ")>
<??("COND:MAIL:ANON",1)>
<?!("COND:MAIL:SUMM:RFCA", 2)><a href="showuser?who=<?MAIL:SUMM:FROM("Q")>">"<?MAIL:SUMM:FROM("X")>" <<?MAIL:SUMM:RFCA>></a><?!("X", 2)>
-<??("COND:MAIL:SUMM:RFCA", 3)><a href="showuser?who=<?MAIL:SUMM:FROM("Q")>"><?MAIL:SUMM:FROM("X")></a> @ <?SERV:NODENAME><??("X", 3)>
+<??("COND:MAIL:SUMM:RFCA", 3)><a href="showuser?who=<?MAIL:SUMM:FROM("Q")>"><?MAIL:SUMM:FROM("X")></a> <??("X", 3)><?!("COND:MAIL:SUMM:OTHERNODE",3)> @ <?MAIL:SUMM:H_NODE><??("X",3)>
<??("X", 1)>
<?!("COND:MAIL:ANON", 4)>***<??("X", 4)>
<p style="visibility: hidden;" id="msg<?MAIL:SUMM:N>" class="msgbuttons">