| | @@ -1927,11 +1927,11 @@ |
| 1927 | 1927 | iStart = db_column_int(&q, 0); |
| 1928 | 1928 | iEnd = db_column_int(&q, 1); |
| 1929 | 1929 | } |
| 1930 | 1930 | db_finalize(&q); |
| 1931 | 1931 | for(i=0; z[i] && z[i]!='\n'; i++){} |
| 1932 | | - if( n==iTop ) cgi_append_content("<span id=\"topln\">", -1); |
| 1932 | + if( n==iTop ) cgi_append_content("<span id=\"scrollToMe\">", -1); |
| 1933 | 1933 | if( n==iStart ){ |
| 1934 | 1934 | cgi_append_content("<div class=\"selectedText\">",-1); |
| 1935 | 1935 | } |
| 1936 | 1936 | cgi_printf("%6d ", n); |
| 1937 | 1937 | if( i>0 ){ |
| | @@ -1946,11 +1946,11 @@ |
| 1946 | 1946 | if( z[0]=='\n' ) z++; |
| 1947 | 1947 | } |
| 1948 | 1948 | if( n<iEnd ) cgi_printf("</div>"); |
| 1949 | 1949 | @ </pre> |
| 1950 | 1950 | if( db_int(0, "SELECT EXISTS(SELECT 1 FROM lnos)") ){ |
| 1951 | | - @ <script>gebi('topln').scrollIntoView(true);</script> |
| 1951 | + style_load_one_js_file("scroll.js"); |
| 1952 | 1952 | } |
| 1953 | 1953 | } |
| 1954 | 1954 | |
| 1955 | 1955 | |
| 1956 | 1956 | /* |
| | @@ -2660,31 +2660,10 @@ |
| 2660 | 2660 | } |
| 2661 | 2661 | blob_zero(&comment); |
| 2662 | 2662 | blob_append(&comment, zNewComment, -1); |
| 2663 | 2663 | zUuid[10] = 0; |
| 2664 | 2664 | style_header("Edit Check-in [%s]", zUuid); |
| 2665 | | - /* |
| 2666 | | - ** chgcbn/chgbn: Handle change of (checkbox for) branch name in |
| 2667 | | - ** remaining of form. |
| 2668 | | - */ |
| 2669 | | - @ <script> |
| 2670 | | - @ function chgcbn(checked, branch){ |
| 2671 | | - @ val = gebi('brname').value.trim(); |
| 2672 | | - @ if( !val || !checked ) val = branch; |
| 2673 | | - @ if( checked ) gebi('brname').select(); |
| 2674 | | - @ gebi('hbranch').textContent = val; |
| 2675 | | - @ cidbrid = document.getElementById('cbranch'); |
| 2676 | | - @ if( cidbrid ) cidbrid.textContent = val; |
| 2677 | | - @ } |
| 2678 | | - @ function chgbn(val, branch){ |
| 2679 | | - @ if( !val ) val = branch; |
| 2680 | | - @ gebi('newbr').checked = (val!=branch); |
| 2681 | | - @ gebi('hbranch').textContent = val; |
| 2682 | | - @ cidbrid = document.getElementById('cbranch'); |
| 2683 | | - @ if( cidbrid ) cidbrid.textContent = val; |
| 2684 | | - @ } |
| 2685 | | - @ </script> |
| 2686 | 2665 | if( P("preview") ){ |
| 2687 | 2666 | Blob suffix; |
| 2688 | 2667 | int nTag = 0; |
| 2689 | 2668 | @ <b>Preview:</b> |
| 2690 | 2669 | @ <blockquote> |
| | @@ -2822,16 +2801,15 @@ |
| 2822 | 2801 | if( !zNewBranch || !zNewBranch[0]){ |
| 2823 | 2802 | zNewBranch = zBranchName; |
| 2824 | 2803 | } |
| 2825 | 2804 | @ <tr><th align="right" valign="top">Branching:</th> |
| 2826 | 2805 | @ <td valign="top"> |
| 2827 | | - @ <label><input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) |
| 2828 | | - @ onchange="chgcbn(this.checked,'%h(zBranchName)')" /> |
| 2806 | + @ <label><input id="newbr" type="checkbox" name="newbr" \ |
| 2807 | + @ data-branch='%h(zBranchName)'%s(zNewBrFlag) /> |
| 2829 | 2808 | @ Make this check-in the start of a new branch named:</label> |
| 2830 | | - @ <input id="brname" type="text" style="width:15;" name="brname" |
| 2831 | | - @ value="%h(zNewBranch)" |
| 2832 | | - @ onkeyup="chgbn(this.value.trim(),'%h(zBranchName)')" /></td></tr> |
| 2809 | + @ <input id="brname" type="text" style="width:15;" name="brname" \ |
| 2810 | + @ value="%h(zNewBranch)" /></td></tr> |
| 2833 | 2811 | if( !fHasHidden ){ |
| 2834 | 2812 | @ <tr><th align="right" valign="top">Branch Hiding:</th> |
| 2835 | 2813 | @ <td valign="top"> |
| 2836 | 2814 | @ <label><input type="checkbox" id="hidebr" name="hide"%s(zHideFlag) /> |
| 2837 | 2815 | @ Hide branch |
| | @@ -2867,10 +2845,11 @@ |
| 2867 | 2845 | @ <input type="submit" name="apply" value="Apply Changes" /> |
| 2868 | 2846 | } |
| 2869 | 2847 | @ </td></tr> |
| 2870 | 2848 | @ </table> |
| 2871 | 2849 | @ </div></form> |
| 2850 | + style_load_one_js_file("ci_edit.js"); |
| 2872 | 2851 | style_footer(); |
| 2873 | 2852 | } |
| 2874 | 2853 | |
| 2875 | 2854 | /* |
| 2876 | 2855 | ** Prepare an ammended commit comment. Let the user modify it using the |
| 2877 | 2856 | |