ungoto/skip/goto ui taking shape...
authorArt Cancro <ajc@citadel.org>
Sun, 28 Apr 2019 22:12:16 +0000 (18:12 -0400)
committerArt Cancro <ajc@citadel.org>
Sun, 28 Apr 2019 22:12:16 +0000 (18:12 -0400)
webcit-ng/static/index.html
webcit-ng/static/js/main.js

index 80d9ff4..a36787f 100644 (file)
@@ -20,7 +20,9 @@
 <div id="navbar" class="w3-bar w3-top w3-black w3-large" style="z-index:4">
        <button class="w3-bar-item w3-button w3-hide-large w3-hover-none w3-hover-text-light-grey" onclick="w3_open();"><i class="fa fa-bars"></i>  Menu</button>
        <span class="w3-right">
-               <button class="w3-bar-item w3-button" onclick="gotonext();">tempgoto</button>
+               <button class="w3-bar-item w3-button" onclick="gotonext(0);">ungoto</button>
+               <button class="w3-bar-item w3-button" onclick="gotonext(1);">skip</button>
+               <button class="w3-bar-item w3-button" onclick="gotonext(2);">goto</button>
                <span id="ctdl_banner_title" class="w3-bar-item">XXX</span>
                <span id="lilo" class="w3-bar-item">Login</span>
        </span>
index f0b0e90..943d751 100644 (file)
@@ -212,8 +212,10 @@ function gotoroom_2(data) {
 
 
 // Goto next room with unread messages
+// which_oper is 0=ungoto, 1=skip, 2=goto
 //
-function gotonext() {
+function gotonext(which_oper) {
+       if (which_oper != 2) return;            // FIXME implement the other two
        if (march_list.length == 0) {
                load_new_march_list();          // we will recurse back here
        }