Fossil SCM
Replace Show/Hide Cookies in test_env page with a checkbox
Commit
7814e9b59ba289754f5dcbc9515315dd8c845c75
Parent
b6a824eccbef579…
1 file changed
+2
-6
+2
-6
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -1589,16 +1589,12 @@ | ||
| 1589 | 1589 | login_needed(0); |
| 1590 | 1590 | return; |
| 1591 | 1591 | } |
| 1592 | 1592 | for(i=0; i<count(azCgiVars); i++) (void)P(azCgiVars[i]); |
| 1593 | 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 | - } | |
| 1594 | + showAll = PB("showall"); | |
| 1595 | + style_submenu_checkbox("showall", "Cookies", 0); | |
| 1600 | 1596 | style_submenu_element("Stats", "%R/stat"); |
| 1601 | 1597 | |
| 1602 | 1598 | #if !defined(_WIN32) |
| 1603 | 1599 | @ uid=%d(getuid()), gid=%d(getgid())<br /> |
| 1604 | 1600 | #endif |
| 1605 | 1601 |
| --- 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 |