]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Added interactive category change functions.
authorwbudic <redacted>
Thu, 13 Dec 2018 04:34:50 +0000 (15:34 +1100)
committerwbudic <redacted>
Thu, 13 Dec 2018 04:34:50 +0000 (15:34 +1100)
htdocs/cgi-bin/wsrc/main.js

index 5b267cc13caaecf837a93a73921c7d55f76591b4..a9dcf93939713285d52d4129f47d65cedad7ad3c 100644 (file)
@@ -122,3 +122,18 @@ function resetView(){
            var f = document.getElementById("frm_srch");
            f.keywords.value = "";
 }
+
+function updateSelCategory(sel){
+        
+        
+    var b = document.getElementById("btn_cat");
+    var cat = document.getElementById("idx_cat");
+
+    cat.value = sel.options[sel.selectedIndex].value;
+    b.innerText = sel.options[sel.selectedIndex].text;
+    
+}
+
+function viewByCategory(btn){
+//     alert(btn.value);
+}