Fossil SCM

Keep the entry boxes filled in on the hash-color-test webpage.

drh 2013-05-02 00:15 trunk
Commit 8d3ff5a7109a51c371a00b152182d8f0c483bc29
1 file changed +3 -1
+3 -1
--- src/timeline.c
+++ src/timeline.c
@@ -202,11 +202,13 @@
202202
}
203203
@ <form method="post" action="%s(g.zTop)/hash-color-test">
204204
@ <p>Enter candidate branch names below and see them displayed in their
205205
@ default background colors above.</p>
206206
for(i=0; i<10; i++){
207
- @ <input type="text" size="30" name="b%d(i)"><br />
207
+ sqlite3_snprintf(sizeof(zNm),zNm,"b%d",i);
208
+ zBr = P(zNm);
209
+ @ <input type="text" size="30" name='%s(zNm)' value='%h(PD(zNm,""))'><br />
208210
}
209211
@ <input type="submit">
210212
@ </form>
211213
style_footer();
212214
}
213215
--- src/timeline.c
+++ src/timeline.c
@@ -202,11 +202,13 @@
202 }
203 @ <form method="post" action="%s(g.zTop)/hash-color-test">
204 @ <p>Enter candidate branch names below and see them displayed in their
205 @ default background colors above.</p>
206 for(i=0; i<10; i++){
207 @ <input type="text" size="30" name="b%d(i)"><br />
 
 
208 }
209 @ <input type="submit">
210 @ </form>
211 style_footer();
212 }
213
--- src/timeline.c
+++ src/timeline.c
@@ -202,11 +202,13 @@
202 }
203 @ <form method="post" action="%s(g.zTop)/hash-color-test">
204 @ <p>Enter candidate branch names below and see them displayed in their
205 @ default background colors above.</p>
206 for(i=0; i<10; i++){
207 sqlite3_snprintf(sizeof(zNm),zNm,"b%d",i);
208 zBr = P(zNm);
209 @ <input type="text" size="30" name='%s(zNm)' value='%h(PD(zNm,""))'><br />
210 }
211 @ <input type="submit">
212 @ </form>
213 style_footer();
214 }
215

Keyboard Shortcuts

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