Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix the automatic Tags checkbox on the /ci_edit page. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
98fabd648dcea87122634eae13886838 |
| User & Date: | drh 2017-12-06 23:06:31.708 |
Context
|
2017-12-07
| ||
| 01:57 | Fix minor script problems. Actually turn on CSP. ... (check-in: e59a7fd3cf user: drh tags: trunk) | |
|
2017-12-06
| ||
| 23:06 | Fix the automatic Tags checkbox on the /ci_edit page. ... (check-in: 98fabd648d user: drh tags: trunk) | |
| 22:38 | Set the color of graph comment boxes using javascript, instead of in-line CSS. ... (check-in: 5a6fe06cd5 user: drh tags: trunk) | |
Changes
Changes to src/ci_edit.js.
| ︙ | ︙ | |||
18 19 20 21 22 23 24 25 26 27 28 |
var br = newbr.getAttribute('data-branch');
if( !x ) x = br;
newbr.checked = (x!=br);
document.getElementById('hbranch').textContent = x;
cidbrid = document.getElementById('cbranch');
if( cidbrid ) cidbrid.textContent = x;
}
(function(){
document.getElementById('newbr').onchange = chgcbn;
document.getElementById('brname').onkeyup = chgbn;
}());
| > > > > > > | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
var br = newbr.getAttribute('data-branch');
if( !x ) x = br;
newbr.checked = (x!=br);
document.getElementById('hbranch').textContent = x;
cidbrid = document.getElementById('cbranch');
if( cidbrid ) cidbrid.textContent = x;
}
function chgtn(){
var newtag = document.getElementById('newtag');
var tagname = document.getElementById('tagname');
newtag.checked=!!tagname.value;
}
(function(){
document.getElementById('newbr').onchange = chgcbn;
document.getElementById('brname').onkeyup = chgbn;
document.getElementById('tagname').onkeyup = chgtn;
}());
|
Changes to src/info.c.
| ︙ | ︙ | |||
2747 2748 2749 2750 2751 2752 2753 | @ Propagate color to descendants</label></div> @ </td></tr> @ <tr><th align="right" valign="top">Tags:</th> @ <td valign="top"> @ <label><input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) /> @ Add the following new tag name to this check-in:</label> | | | | 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 |
@ Propagate color to descendants</label></div>
@ </td></tr>
@ <tr><th align="right" valign="top">Tags:</th>
@ <td valign="top">
@ <label><input type="checkbox" id="newtag" name="newtag"%s(zNewTagFlag) />
@ Add the following new tag name to this check-in:</label>
@ <input type="text" size='15' name="tagname" value="%h(zNewTag)" \
@ id='tagname' />
zBranchName = db_text(0, "SELECT value FROM tagxref, tag"
" WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid"
" AND tagxref.tagid=%d", rid, TAG_BRANCH);
db_prepare(&q,
"SELECT tag.tagid, tagname, tagxref.value FROM tagxref, tag"
" WHERE tagxref.rid=%d AND tagtype>0 AND tagxref.tagid=tag.tagid"
" ORDER BY CASE WHEN tagname GLOB 'sym-*' THEN substr(tagname,5)"
|
| ︙ | ︙ |