Fossil SCM
Fix the automatic Tags checkbox on the /ci_edit page.
Commit
98fabd648dcea87122634eae138868387a087da04e2086e480f80b06d80397f3
Parent
5a6fe06cd53b2da…
2 files changed
+6
+2
-2
+6
| --- src/ci_edit.js | ||
| +++ src/ci_edit.js | ||
| @@ -20,9 +20,15 @@ | ||
| 20 | 20 | newbr.checked = (x!=br); |
| 21 | 21 | document.getElementById('hbranch').textContent = x; |
| 22 | 22 | cidbrid = document.getElementById('cbranch'); |
| 23 | 23 | if( cidbrid ) cidbrid.textContent = x; |
| 24 | 24 | } |
| 25 | +function chgtn(){ | |
| 26 | + var newtag = document.getElementById('newtag'); | |
| 27 | + var tagname = document.getElementById('tagname'); | |
| 28 | + newtag.checked=!!tagname.value; | |
| 29 | +} | |
| 25 | 30 | (function(){ |
| 26 | 31 | document.getElementById('newbr').onchange = chgcbn; |
| 27 | 32 | document.getElementById('brname').onkeyup = chgbn; |
| 33 | + document.getElementById('tagname').onkeyup = chgtn; | |
| 28 | 34 | }()); |
| 29 | 35 |
| --- src/ci_edit.js | |
| +++ src/ci_edit.js | |
| @@ -20,9 +20,15 @@ | |
| 20 | newbr.checked = (x!=br); |
| 21 | document.getElementById('hbranch').textContent = x; |
| 22 | cidbrid = document.getElementById('cbranch'); |
| 23 | if( cidbrid ) cidbrid.textContent = x; |
| 24 | } |
| 25 | (function(){ |
| 26 | document.getElementById('newbr').onchange = chgcbn; |
| 27 | document.getElementById('brname').onkeyup = chgbn; |
| 28 | }()); |
| 29 |
| --- src/ci_edit.js | |
| +++ src/ci_edit.js | |
| @@ -20,9 +20,15 @@ | |
| 20 | newbr.checked = (x!=br); |
| 21 | document.getElementById('hbranch').textContent = x; |
| 22 | cidbrid = document.getElementById('cbranch'); |
| 23 | if( cidbrid ) cidbrid.textContent = x; |
| 24 | } |
| 25 | function chgtn(){ |
| 26 | var newtag = document.getElementById('newtag'); |
| 27 | var tagname = document.getElementById('tagname'); |
| 28 | newtag.checked=!!tagname.value; |
| 29 | } |
| 30 | (function(){ |
| 31 | document.getElementById('newbr').onchange = chgcbn; |
| 32 | document.getElementById('brname').onkeyup = chgbn; |
| 33 | document.getElementById('tagname').onkeyup = chgtn; |
| 34 | }()); |
| 35 |
+2
-2
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -2749,12 +2749,12 @@ | ||
| 2749 | 2749 | |
| 2750 | 2750 | @ <tr><th align="right" valign="top">Tags:</th> |
| 2751 | 2751 | @ <td valign="top"> |
| 2752 | 2752 | @ <label><input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) /> |
| 2753 | 2753 | @ Add the following new tag name to this check-in:</label> |
| 2754 | - @ <input type="text" style="width:15;" name="tagname" value="%h(zNewTag)" | |
| 2755 | - @ onkeyup="gebi('newtag').checked=!!this.value" /> | |
| 2754 | + @ <input type="text" size='15' name="tagname" value="%h(zNewTag)" \ | |
| 2755 | + @ id='tagname' /> | |
| 2756 | 2756 | zBranchName = db_text(0, "SELECT value FROM tagxref, tag" |
| 2757 | 2757 | " WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid" |
| 2758 | 2758 | " AND tagxref.tagid=%d", rid, TAG_BRANCH); |
| 2759 | 2759 | db_prepare(&q, |
| 2760 | 2760 | "SELECT tag.tagid, tagname, tagxref.value FROM tagxref, tag" |
| 2761 | 2761 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -2749,12 +2749,12 @@ | |
| 2749 | |
| 2750 | @ <tr><th align="right" valign="top">Tags:</th> |
| 2751 | @ <td valign="top"> |
| 2752 | @ <label><input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) /> |
| 2753 | @ Add the following new tag name to this check-in:</label> |
| 2754 | @ <input type="text" style="width:15;" name="tagname" value="%h(zNewTag)" |
| 2755 | @ onkeyup="gebi('newtag').checked=!!this.value" /> |
| 2756 | zBranchName = db_text(0, "SELECT value FROM tagxref, tag" |
| 2757 | " WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid" |
| 2758 | " AND tagxref.tagid=%d", rid, TAG_BRANCH); |
| 2759 | db_prepare(&q, |
| 2760 | "SELECT tag.tagid, tagname, tagxref.value FROM tagxref, tag" |
| 2761 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -2749,12 +2749,12 @@ | |
| 2749 | |
| 2750 | @ <tr><th align="right" valign="top">Tags:</th> |
| 2751 | @ <td valign="top"> |
| 2752 | @ <label><input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) /> |
| 2753 | @ Add the following new tag name to this check-in:</label> |
| 2754 | @ <input type="text" size='15' name="tagname" value="%h(zNewTag)" \ |
| 2755 | @ id='tagname' /> |
| 2756 | zBranchName = db_text(0, "SELECT value FROM tagxref, tag" |
| 2757 | " WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid" |
| 2758 | " AND tagxref.tagid=%d", rid, TAG_BRANCH); |
| 2759 | db_prepare(&q, |
| 2760 | "SELECT tag.tagid, tagname, tagxref.value FROM tagxref, tag" |
| 2761 |