Fossil SCM
Automatically check both "Tags:" and "Branching:" boxes when text is entered into the name fields on the "ci_edit" page.
Commit
b2164fb70c0e4d052d6b60e3bc2e9f0da750d940
Parent
542f989a27d923f…
1 file changed
+5
-4
+5
-4
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -2005,14 +2005,14 @@ | ||
| 2005 | 2005 | render_color_chooser(fNewPropagateColor, zNewColor, "pclr", "clr", "clrcust"); |
| 2006 | 2006 | @ </td></tr> |
| 2007 | 2007 | |
| 2008 | 2008 | @ <tr><td align="right" valign="top"><b>Tags:</b></td> |
| 2009 | 2009 | @ <td valign="top"> |
| 2010 | - @ <input type="checkbox" name="newtag"%s(zNewTagFlag) /> | |
| 2010 | + @ <input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) /> | |
| 2011 | 2011 | @ Add the following new tag name to this check-in: |
| 2012 | 2012 | @ <input type="text" style="width:15;" name="tagname" value="%h(zNewTag)" |
| 2013 | - @ onkeyup="var cb = document.getElementsByName('newtag'); cb=cb?cb[0]:false; if(cb) cb.checked = !!this.value"/> | |
| 2013 | + @ onkeyup="document.getElementById('newtag').checked=!!this.value" /> | |
| 2014 | 2014 | db_prepare(&q, |
| 2015 | 2015 | "SELECT tag.tagid, tagname FROM tagxref, tag" |
| 2016 | 2016 | " WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid" |
| 2017 | 2017 | " ORDER BY CASE WHEN tagname GLOB 'sym-*' THEN substr(tagname,5)" |
| 2018 | 2018 | " ELSE tagname END /*sort*/", |
| @@ -2037,13 +2037,14 @@ | ||
| 2037 | 2037 | db_finalize(&q); |
| 2038 | 2038 | @ </td></tr> |
| 2039 | 2039 | |
| 2040 | 2040 | @ <tr><td align="right" valign="top"><b>Branching:</b></td> |
| 2041 | 2041 | @ <td valign="top"> |
| 2042 | - @ <input type="checkbox" name="newbr"%s(zNewBrFlag) /> | |
| 2042 | + @ <input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) /> | |
| 2043 | 2043 | @ Make this check-in the start of a new branch named: |
| 2044 | - @ <input type="text" style="width:15;" name="brname" value="%h(zNewBranch)" /> | |
| 2044 | + @ <input type="text" style="width:15;" name="brname" value="%h(zNewBranch)" | |
| 2045 | + @ onkeyup="document.getElementById('newbr').checked=!!this.value" /> | |
| 2045 | 2046 | @ </td></tr> |
| 2046 | 2047 | |
| 2047 | 2048 | if( is_a_leaf(rid) |
| 2048 | 2049 | && !db_exists("SELECT 1 FROM tagxref " |
| 2049 | 2050 | " WHERE tagid=%d AND rid=%d AND tagtype>0", |
| 2050 | 2051 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -2005,14 +2005,14 @@ | |
| 2005 | render_color_chooser(fNewPropagateColor, zNewColor, "pclr", "clr", "clrcust"); |
| 2006 | @ </td></tr> |
| 2007 | |
| 2008 | @ <tr><td align="right" valign="top"><b>Tags:</b></td> |
| 2009 | @ <td valign="top"> |
| 2010 | @ <input type="checkbox" name="newtag"%s(zNewTagFlag) /> |
| 2011 | @ Add the following new tag name to this check-in: |
| 2012 | @ <input type="text" style="width:15;" name="tagname" value="%h(zNewTag)" |
| 2013 | @ onkeyup="var cb = document.getElementsByName('newtag'); cb=cb?cb[0]:false; if(cb) cb.checked = !!this.value"/> |
| 2014 | db_prepare(&q, |
| 2015 | "SELECT tag.tagid, tagname FROM tagxref, tag" |
| 2016 | " WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid" |
| 2017 | " ORDER BY CASE WHEN tagname GLOB 'sym-*' THEN substr(tagname,5)" |
| 2018 | " ELSE tagname END /*sort*/", |
| @@ -2037,13 +2037,14 @@ | |
| 2037 | db_finalize(&q); |
| 2038 | @ </td></tr> |
| 2039 | |
| 2040 | @ <tr><td align="right" valign="top"><b>Branching:</b></td> |
| 2041 | @ <td valign="top"> |
| 2042 | @ <input type="checkbox" name="newbr"%s(zNewBrFlag) /> |
| 2043 | @ Make this check-in the start of a new branch named: |
| 2044 | @ <input type="text" style="width:15;" name="brname" value="%h(zNewBranch)" /> |
| 2045 | @ </td></tr> |
| 2046 | |
| 2047 | if( is_a_leaf(rid) |
| 2048 | && !db_exists("SELECT 1 FROM tagxref " |
| 2049 | " WHERE tagid=%d AND rid=%d AND tagtype>0", |
| 2050 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -2005,14 +2005,14 @@ | |
| 2005 | render_color_chooser(fNewPropagateColor, zNewColor, "pclr", "clr", "clrcust"); |
| 2006 | @ </td></tr> |
| 2007 | |
| 2008 | @ <tr><td align="right" valign="top"><b>Tags:</b></td> |
| 2009 | @ <td valign="top"> |
| 2010 | @ <input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) /> |
| 2011 | @ Add the following new tag name to this check-in: |
| 2012 | @ <input type="text" style="width:15;" name="tagname" value="%h(zNewTag)" |
| 2013 | @ onkeyup="document.getElementById('newtag').checked=!!this.value" /> |
| 2014 | db_prepare(&q, |
| 2015 | "SELECT tag.tagid, tagname FROM tagxref, tag" |
| 2016 | " WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid" |
| 2017 | " ORDER BY CASE WHEN tagname GLOB 'sym-*' THEN substr(tagname,5)" |
| 2018 | " ELSE tagname END /*sort*/", |
| @@ -2037,13 +2037,14 @@ | |
| 2037 | db_finalize(&q); |
| 2038 | @ </td></tr> |
| 2039 | |
| 2040 | @ <tr><td align="right" valign="top"><b>Branching:</b></td> |
| 2041 | @ <td valign="top"> |
| 2042 | @ <input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) /> |
| 2043 | @ Make this check-in the start of a new branch named: |
| 2044 | @ <input type="text" style="width:15;" name="brname" value="%h(zNewBranch)" |
| 2045 | @ onkeyup="document.getElementById('newbr').checked=!!this.value" /> |
| 2046 | @ </td></tr> |
| 2047 | |
| 2048 | if( is_a_leaf(rid) |
| 2049 | && !db_exists("SELECT 1 FROM tagxref " |
| 2050 | " WHERE tagid=%d AND rid=%d AND tagtype>0", |
| 2051 |