Fossil SCM

Added checkbox to reset mainmenu to its default value, per discussion at [forum:/forumpost/5ab3ce6c45 | forumpost/5ab3ce6c45].

stephan 2021-01-30 04:01 trunk
Commit 8af3d425d2862b72a2aaaf3184117f1f047ca38552ae3fee4e5c61138aeacad9
1 file changed +8 -1
+8 -1
--- src/setup.c
+++ src/setup.c
@@ -1041,13 +1041,20 @@
10411041
@ <p>Some custom skins might not use this property. Whether the property
10421042
@ is used or a choice made by the skin designer. Some skins add an extra
10431043
@ choices (such as the hamburger button) to the menu that are not shown
10441044
@ on this list. (Property: mainmenu)
10451045
@ <p>
1046
+ if(P("resetMenu")!=0){
1047
+ db_unset("mainmenu", 0);
1048
+ cgi_delete_parameter("mmenu");
1049
+ }
10461050
textarea_attribute("Main Menu", 12, 80,
10471051
"mainmenu", "mmenu", style_default_mainmenu(), 0);
1048
- @
1052
+ @ </p>
1053
+ @ <p><input type='checkbox' id='cbResetMenu' name='resetMenu' value='1'>
1054
+ @ <label for='cbResetMenu'>Reset menu to default value</label>
1055
+ @ </p>
10491056
@ <hr>
10501057
@ <p>Extra links to appear on the <a href="%R/sitemap">/sitemap</a> page,
10511058
@ as sub-items of the "Home Page" entry, appearing before the
10521059
@ "Documentation Search" entry (if any). In skins that use the /sitemap
10531060
@ page to construct a hamburger menu dropdown, new entries added here
10541061
--- src/setup.c
+++ src/setup.c
@@ -1041,13 +1041,20 @@
1041 @ <p>Some custom skins might not use this property. Whether the property
1042 @ is used or a choice made by the skin designer. Some skins add an extra
1043 @ choices (such as the hamburger button) to the menu that are not shown
1044 @ on this list. (Property: mainmenu)
1045 @ <p>
 
 
 
 
1046 textarea_attribute("Main Menu", 12, 80,
1047 "mainmenu", "mmenu", style_default_mainmenu(), 0);
1048 @
 
 
 
1049 @ <hr>
1050 @ <p>Extra links to appear on the <a href="%R/sitemap">/sitemap</a> page,
1051 @ as sub-items of the "Home Page" entry, appearing before the
1052 @ "Documentation Search" entry (if any). In skins that use the /sitemap
1053 @ page to construct a hamburger menu dropdown, new entries added here
1054
--- src/setup.c
+++ src/setup.c
@@ -1041,13 +1041,20 @@
1041 @ <p>Some custom skins might not use this property. Whether the property
1042 @ is used or a choice made by the skin designer. Some skins add an extra
1043 @ choices (such as the hamburger button) to the menu that are not shown
1044 @ on this list. (Property: mainmenu)
1045 @ <p>
1046 if(P("resetMenu")!=0){
1047 db_unset("mainmenu", 0);
1048 cgi_delete_parameter("mmenu");
1049 }
1050 textarea_attribute("Main Menu", 12, 80,
1051 "mainmenu", "mmenu", style_default_mainmenu(), 0);
1052 @ </p>
1053 @ <p><input type='checkbox' id='cbResetMenu' name='resetMenu' value='1'>
1054 @ <label for='cbResetMenu'>Reset menu to default value</label>
1055 @ </p>
1056 @ <hr>
1057 @ <p>Extra links to appear on the <a href="%R/sitemap">/sitemap</a> page,
1058 @ as sub-items of the "Home Page" entry, appearing before the
1059 @ "Documentation Search" entry (if any). In skins that use the /sitemap
1060 @ page to construct a hamburger menu dropdown, new entries added here
1061

Keyboard Shortcuts

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