Fossil SCM

Replace Show/Hide Cookies in test_env page with a checkbox

andygoth 2016-11-05 14:04 trunk
Commit 7814e9b59ba289754f5dcbc9515315dd8c845c75
1 file changed +2 -6
+2 -6
--- src/style.c
+++ src/style.c
@@ -1589,16 +1589,12 @@
15891589
login_needed(0);
15901590
return;
15911591
}
15921592
for(i=0; i<count(azCgiVars); i++) (void)P(azCgiVars[i]);
15931593
style_header("Environment Test");
1594
- showAll = atoi(PD("showall","0"));
1595
- if( !showAll ){
1596
- style_submenu_element("Show Cookies", "%R/test_env?showall=1");
1597
- }else{
1598
- style_submenu_element("Hide Cookies", "%R/test_env");
1599
- }
1594
+ showAll = PB("showall");
1595
+ style_submenu_checkbox("showall", "Cookies", 0);
16001596
style_submenu_element("Stats", "%R/stat");
16011597
16021598
#if !defined(_WIN32)
16031599
@ uid=%d(getuid()), gid=%d(getgid())<br />
16041600
#endif
16051601
--- src/style.c
+++ src/style.c
@@ -1589,16 +1589,12 @@
1589 login_needed(0);
1590 return;
1591 }
1592 for(i=0; i<count(azCgiVars); i++) (void)P(azCgiVars[i]);
1593 style_header("Environment Test");
1594 showAll = atoi(PD("showall","0"));
1595 if( !showAll ){
1596 style_submenu_element("Show Cookies", "%R/test_env?showall=1");
1597 }else{
1598 style_submenu_element("Hide Cookies", "%R/test_env");
1599 }
1600 style_submenu_element("Stats", "%R/stat");
1601
1602 #if !defined(_WIN32)
1603 @ uid=%d(getuid()), gid=%d(getgid())<br />
1604 #endif
1605
--- src/style.c
+++ src/style.c
@@ -1589,16 +1589,12 @@
1589 login_needed(0);
1590 return;
1591 }
1592 for(i=0; i<count(azCgiVars); i++) (void)P(azCgiVars[i]);
1593 style_header("Environment Test");
1594 showAll = PB("showall");
1595 style_submenu_checkbox("showall", "Cookies", 0);
 
 
 
 
1596 style_submenu_element("Stats", "%R/stat");
1597
1598 #if !defined(_WIN32)
1599 @ uid=%d(getuid()), gid=%d(getgid())<br />
1600 #endif
1601

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button