Fossil SCM

Renamed the 'sandbox' automagical page to 'Sandbox' (upper case) for consistency with the historical sandbox links. Both names work equivalently, but now the selection list matches up with the name passed in via the external links to the sandbox.

stephan 2020-07-31 04:55 ajax-wiki-editor
Commit a95dd98e8147351f795e1fa10f5fca637f337d133cbdabca781ef28bb4bf012c
1 file changed +2 -2
+2 -2
--- src/wiki.c
+++ src/wiki.c
@@ -987,11 +987,11 @@
987987
cgi_set_content_type("application/json");
988988
db_begin_transaction();
989989
db_prepare(&q, "SELECT"
990990
" substr(tagname,6) AS name"
991991
" FROM tag WHERE tagname GLOB 'wiki-*'"
992
- " UNION SELECT 'sandbox' AS name"
992
+ " UNION SELECT 'Sandbox' AS name"
993993
" ORDER BY name COLLATE NOCASE");
994994
CX("[");
995995
while( SQLITE_ROW==db_step(&q) ){
996996
char const * zName = db_column_text(&q,0);
997997
if(n++){
@@ -1221,11 +1221,11 @@
12211221
CX("</ul>");
12221222
CX("<hr><h3>Attachments</h3>");
12231223
CX("<div id='wikiedit-attachments'></div>"
12241224
/* Filled out by JS */);
12251225
CX("<hr><h3>The \"Sandbox\" Page</h3>");
1226
- CX("<p>The page named \"sandbox\" is not a real wiki page. "
1226
+ CX("<p>The page named \"Sandbox\" is not a real wiki page. "
12271227
"It provides a place where users may test out wiki syntax "
12281228
"without having to actually save anything, nor pollute "
12291229
"the repo with endless test runs. Any attempt to save the "
12301230
"sandbox page will fail.</p>");
12311231
CX("<hr><h3>Wiki Name Rules</h3>");
12321232
--- src/wiki.c
+++ src/wiki.c
@@ -987,11 +987,11 @@
987 cgi_set_content_type("application/json");
988 db_begin_transaction();
989 db_prepare(&q, "SELECT"
990 " substr(tagname,6) AS name"
991 " FROM tag WHERE tagname GLOB 'wiki-*'"
992 " UNION SELECT 'sandbox' AS name"
993 " ORDER BY name COLLATE NOCASE");
994 CX("[");
995 while( SQLITE_ROW==db_step(&q) ){
996 char const * zName = db_column_text(&q,0);
997 if(n++){
@@ -1221,11 +1221,11 @@
1221 CX("</ul>");
1222 CX("<hr><h3>Attachments</h3>");
1223 CX("<div id='wikiedit-attachments'></div>"
1224 /* Filled out by JS */);
1225 CX("<hr><h3>The \"Sandbox\" Page</h3>");
1226 CX("<p>The page named \"sandbox\" is not a real wiki page. "
1227 "It provides a place where users may test out wiki syntax "
1228 "without having to actually save anything, nor pollute "
1229 "the repo with endless test runs. Any attempt to save the "
1230 "sandbox page will fail.</p>");
1231 CX("<hr><h3>Wiki Name Rules</h3>");
1232
--- src/wiki.c
+++ src/wiki.c
@@ -987,11 +987,11 @@
987 cgi_set_content_type("application/json");
988 db_begin_transaction();
989 db_prepare(&q, "SELECT"
990 " substr(tagname,6) AS name"
991 " FROM tag WHERE tagname GLOB 'wiki-*'"
992 " UNION SELECT 'Sandbox' AS name"
993 " ORDER BY name COLLATE NOCASE");
994 CX("[");
995 while( SQLITE_ROW==db_step(&q) ){
996 char const * zName = db_column_text(&q,0);
997 if(n++){
@@ -1221,11 +1221,11 @@
1221 CX("</ul>");
1222 CX("<hr><h3>Attachments</h3>");
1223 CX("<div id='wikiedit-attachments'></div>"
1224 /* Filled out by JS */);
1225 CX("<hr><h3>The \"Sandbox\" Page</h3>");
1226 CX("<p>The page named \"Sandbox\" is not a real wiki page. "
1227 "It provides a place where users may test out wiki syntax "
1228 "without having to actually save anything, nor pollute "
1229 "the repo with endless test runs. Any attempt to save the "
1230 "sandbox page will fail.</p>");
1231 CX("<hr><h3>Wiki Name Rules</h3>");
1232

Keyboard Shortcuts

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