Fossil SCM
Use different format specifier for and textContent to avoid unwanted display issues.
Commit
439f18e86609da646059891dec7d4423af498766
Parent
11e8a48e4d5cd90…
1 file changed
+11
-11
+11
-11
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -2208,18 +2208,18 @@ | ||
| 2208 | 2208 | blob_zero(&comment); |
| 2209 | 2209 | blob_append(&comment, zNewComment, -1); |
| 2210 | 2210 | zUuid[10] = 0; |
| 2211 | 2211 | style_header("Edit Check-in [%s]", zUuid); |
| 2212 | 2212 | /* |
| 2213 | - ** Javascript functions to assist in modifying hidden branch options | |
| 2214 | - ** sihbi: sets the innerHTML for the given element id to val | |
| 2213 | + ** Javascript functions to assist in modifying hidden branch options. | |
| 2214 | + ** stcbi: sets the textContent for the given element id to val | |
| 2215 | 2215 | ** hcbxbi: hids the checkbox and unchecks for the given element id |
| 2216 | 2216 | ** hauc: hides and unchecks the checkbox when needed |
| 2217 | 2217 | */ |
| 2218 | 2218 | @ <script> |
| 2219 | - @ function sihbi(id,val){ | |
| 2220 | - @ id.innerHTML = val; | |
| 2219 | + @ function stcbi(id,val){ | |
| 2220 | + @ id.textContent = val; | |
| 2221 | 2221 | @ } |
| 2222 | 2222 | @ function hcbxbi(id,toggle){ |
| 2223 | 2223 | @ if( toggle ){ |
| 2224 | 2224 | @ id.style.visibility = "hidden"; |
| 2225 | 2225 | @ id.checked = false; |
| @@ -2228,13 +2228,13 @@ | ||
| 2228 | 2228 | @ } |
| 2229 | 2229 | @ } |
| 2230 | 2230 | @ function hauc(cbxid,hidbrid,zdef,formid,toggle){ |
| 2231 | 2231 | @ if( cbxid ) hcbxbi(cbxid,toggle); |
| 2232 | 2232 | @ if( toggle ){ |
| 2233 | - @ sihbi(hidbrid,zdef); | |
| 2233 | + @ stcbi(hidbrid,zdef); | |
| 2234 | 2234 | @ }else{ |
| 2235 | - @ if( gebi(formid).value ) sihbi(hidbrid,gebi(formid).value); | |
| 2235 | + @ if( gebi(formid).value ) stcbi(hidbrid,gebi(formid).value); | |
| 2236 | 2236 | @ } |
| 2237 | 2237 | @ } |
| 2238 | 2238 | @ </script> |
| 2239 | 2239 | if( P("preview") ){ |
| 2240 | 2240 | Blob suffix; |
| @@ -2360,14 +2360,14 @@ | ||
| 2360 | 2360 | @ <tr><th align="right" valign="top">Branching:</th> |
| 2361 | 2361 | @ <td valign="top"> |
| 2362 | 2362 | @ <label><input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) |
| 2363 | 2363 | if( !fHasHidden && zBranchName ){ |
| 2364 | 2364 | if( fossil_strcmp(zBranchName, "trunk")==0 ){ |
| 2365 | - @ onclick="hauc(gebi('hidebr'),gebi('hbranch'),'%s(zBranchName)', | |
| 2365 | + @ onclick="hauc(gebi('hidebr'),gebi('hbranch'),'%h(zBranchName)', | |
| 2366 | 2366 | @ 'brname',this.value)" |
| 2367 | 2367 | }else{ |
| 2368 | - @ onclick="hauc(null,gebi('hbranch'),'%s(zBranchName)', | |
| 2368 | + @ onclick="hauc(null,gebi('hbranch'),'%h(zBranchName)', | |
| 2369 | 2369 | @ 'brname',this.value)" |
| 2370 | 2370 | } |
| 2371 | 2371 | } |
| 2372 | 2372 | @ /> |
| 2373 | 2373 | @ Make this check-in the start of a new branch named:</label> |
| @@ -2374,14 +2374,14 @@ | ||
| 2374 | 2374 | @ <input type="text" style="width:15;" id="brname" name="brname" |
| 2375 | 2375 | @ value="%h(zNewBranch)" |
| 2376 | 2376 | if( !fHasHidden && zBranchName ){ |
| 2377 | 2377 | @ onkeyup="gebi('newbr').checked=!!this.value; |
| 2378 | 2378 | if( fossil_strcmp(zBranchName, "trunk")==0 ){ |
| 2379 | - @ hauc(gebi('hidebr'),gebi('hbranch'),'%s(zBranchName)', | |
| 2379 | + @ hauc(gebi('hidebr'),gebi('hbranch'),'%h(zBranchName)', | |
| 2380 | 2380 | @ 'brname',!this.value)" |
| 2381 | 2381 | }else{ |
| 2382 | - @ hauc(null,gebi('hbranch'),'%s(zBranchName)','brname',!this.value)" | |
| 2382 | + @ hauc(null,gebi('hbranch'),'%h(zBranchName)','brname',!this.value)" | |
| 2383 | 2383 | } |
| 2384 | 2384 | } |
| 2385 | 2385 | @ /> |
| 2386 | 2386 | @ </td></tr> |
| 2387 | 2387 | |
| @@ -2393,11 +2393,11 @@ | ||
| 2393 | 2393 | @ style="visibility: hidden" /> |
| 2394 | 2394 | }else{ |
| 2395 | 2395 | @ /> |
| 2396 | 2396 | } |
| 2397 | 2397 | @ Hide branch |
| 2398 | - @ <span style="font-weight:bold" id="hbranch">%s(zBranchName)</span> | |
| 2398 | + @ <span style="font-weight:bold" id="hbranch">%h(zBranchName)</span> | |
| 2399 | 2399 | @ from the timeline starting from this check-in</label> |
| 2400 | 2400 | @ </td></tr> |
| 2401 | 2401 | } |
| 2402 | 2402 | |
| 2403 | 2403 | |
| 2404 | 2404 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -2208,18 +2208,18 @@ | |
| 2208 | blob_zero(&comment); |
| 2209 | blob_append(&comment, zNewComment, -1); |
| 2210 | zUuid[10] = 0; |
| 2211 | style_header("Edit Check-in [%s]", zUuid); |
| 2212 | /* |
| 2213 | ** Javascript functions to assist in modifying hidden branch options |
| 2214 | ** sihbi: sets the innerHTML for the given element id to val |
| 2215 | ** hcbxbi: hids the checkbox and unchecks for the given element id |
| 2216 | ** hauc: hides and unchecks the checkbox when needed |
| 2217 | */ |
| 2218 | @ <script> |
| 2219 | @ function sihbi(id,val){ |
| 2220 | @ id.innerHTML = val; |
| 2221 | @ } |
| 2222 | @ function hcbxbi(id,toggle){ |
| 2223 | @ if( toggle ){ |
| 2224 | @ id.style.visibility = "hidden"; |
| 2225 | @ id.checked = false; |
| @@ -2228,13 +2228,13 @@ | |
| 2228 | @ } |
| 2229 | @ } |
| 2230 | @ function hauc(cbxid,hidbrid,zdef,formid,toggle){ |
| 2231 | @ if( cbxid ) hcbxbi(cbxid,toggle); |
| 2232 | @ if( toggle ){ |
| 2233 | @ sihbi(hidbrid,zdef); |
| 2234 | @ }else{ |
| 2235 | @ if( gebi(formid).value ) sihbi(hidbrid,gebi(formid).value); |
| 2236 | @ } |
| 2237 | @ } |
| 2238 | @ </script> |
| 2239 | if( P("preview") ){ |
| 2240 | Blob suffix; |
| @@ -2360,14 +2360,14 @@ | |
| 2360 | @ <tr><th align="right" valign="top">Branching:</th> |
| 2361 | @ <td valign="top"> |
| 2362 | @ <label><input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) |
| 2363 | if( !fHasHidden && zBranchName ){ |
| 2364 | if( fossil_strcmp(zBranchName, "trunk")==0 ){ |
| 2365 | @ onclick="hauc(gebi('hidebr'),gebi('hbranch'),'%s(zBranchName)', |
| 2366 | @ 'brname',this.value)" |
| 2367 | }else{ |
| 2368 | @ onclick="hauc(null,gebi('hbranch'),'%s(zBranchName)', |
| 2369 | @ 'brname',this.value)" |
| 2370 | } |
| 2371 | } |
| 2372 | @ /> |
| 2373 | @ Make this check-in the start of a new branch named:</label> |
| @@ -2374,14 +2374,14 @@ | |
| 2374 | @ <input type="text" style="width:15;" id="brname" name="brname" |
| 2375 | @ value="%h(zNewBranch)" |
| 2376 | if( !fHasHidden && zBranchName ){ |
| 2377 | @ onkeyup="gebi('newbr').checked=!!this.value; |
| 2378 | if( fossil_strcmp(zBranchName, "trunk")==0 ){ |
| 2379 | @ hauc(gebi('hidebr'),gebi('hbranch'),'%s(zBranchName)', |
| 2380 | @ 'brname',!this.value)" |
| 2381 | }else{ |
| 2382 | @ hauc(null,gebi('hbranch'),'%s(zBranchName)','brname',!this.value)" |
| 2383 | } |
| 2384 | } |
| 2385 | @ /> |
| 2386 | @ </td></tr> |
| 2387 | |
| @@ -2393,11 +2393,11 @@ | |
| 2393 | @ style="visibility: hidden" /> |
| 2394 | }else{ |
| 2395 | @ /> |
| 2396 | } |
| 2397 | @ Hide branch |
| 2398 | @ <span style="font-weight:bold" id="hbranch">%s(zBranchName)</span> |
| 2399 | @ from the timeline starting from this check-in</label> |
| 2400 | @ </td></tr> |
| 2401 | } |
| 2402 | |
| 2403 | |
| 2404 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -2208,18 +2208,18 @@ | |
| 2208 | blob_zero(&comment); |
| 2209 | blob_append(&comment, zNewComment, -1); |
| 2210 | zUuid[10] = 0; |
| 2211 | style_header("Edit Check-in [%s]", zUuid); |
| 2212 | /* |
| 2213 | ** Javascript functions to assist in modifying hidden branch options. |
| 2214 | ** stcbi: sets the textContent for the given element id to val |
| 2215 | ** hcbxbi: hids the checkbox and unchecks for the given element id |
| 2216 | ** hauc: hides and unchecks the checkbox when needed |
| 2217 | */ |
| 2218 | @ <script> |
| 2219 | @ function stcbi(id,val){ |
| 2220 | @ id.textContent = val; |
| 2221 | @ } |
| 2222 | @ function hcbxbi(id,toggle){ |
| 2223 | @ if( toggle ){ |
| 2224 | @ id.style.visibility = "hidden"; |
| 2225 | @ id.checked = false; |
| @@ -2228,13 +2228,13 @@ | |
| 2228 | @ } |
| 2229 | @ } |
| 2230 | @ function hauc(cbxid,hidbrid,zdef,formid,toggle){ |
| 2231 | @ if( cbxid ) hcbxbi(cbxid,toggle); |
| 2232 | @ if( toggle ){ |
| 2233 | @ stcbi(hidbrid,zdef); |
| 2234 | @ }else{ |
| 2235 | @ if( gebi(formid).value ) stcbi(hidbrid,gebi(formid).value); |
| 2236 | @ } |
| 2237 | @ } |
| 2238 | @ </script> |
| 2239 | if( P("preview") ){ |
| 2240 | Blob suffix; |
| @@ -2360,14 +2360,14 @@ | |
| 2360 | @ <tr><th align="right" valign="top">Branching:</th> |
| 2361 | @ <td valign="top"> |
| 2362 | @ <label><input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) |
| 2363 | if( !fHasHidden && zBranchName ){ |
| 2364 | if( fossil_strcmp(zBranchName, "trunk")==0 ){ |
| 2365 | @ onclick="hauc(gebi('hidebr'),gebi('hbranch'),'%h(zBranchName)', |
| 2366 | @ 'brname',this.value)" |
| 2367 | }else{ |
| 2368 | @ onclick="hauc(null,gebi('hbranch'),'%h(zBranchName)', |
| 2369 | @ 'brname',this.value)" |
| 2370 | } |
| 2371 | } |
| 2372 | @ /> |
| 2373 | @ Make this check-in the start of a new branch named:</label> |
| @@ -2374,14 +2374,14 @@ | |
| 2374 | @ <input type="text" style="width:15;" id="brname" name="brname" |
| 2375 | @ value="%h(zNewBranch)" |
| 2376 | if( !fHasHidden && zBranchName ){ |
| 2377 | @ onkeyup="gebi('newbr').checked=!!this.value; |
| 2378 | if( fossil_strcmp(zBranchName, "trunk")==0 ){ |
| 2379 | @ hauc(gebi('hidebr'),gebi('hbranch'),'%h(zBranchName)', |
| 2380 | @ 'brname',!this.value)" |
| 2381 | }else{ |
| 2382 | @ hauc(null,gebi('hbranch'),'%h(zBranchName)','brname',!this.value)" |
| 2383 | } |
| 2384 | } |
| 2385 | @ /> |
| 2386 | @ </td></tr> |
| 2387 | |
| @@ -2393,11 +2393,11 @@ | |
| 2393 | @ style="visibility: hidden" /> |
| 2394 | }else{ |
| 2395 | @ /> |
| 2396 | } |
| 2397 | @ Hide branch |
| 2398 | @ <span style="font-weight:bold" id="hbranch">%h(zBranchName)</span> |
| 2399 | @ from the timeline starting from this check-in</label> |
| 2400 | @ </td></tr> |
| 2401 | } |
| 2402 | |
| 2403 | |
| 2404 |