Fossil SCM
In the /timeline, automatically highlight the from= and to= selections.
Commit
bb3de39ffefb3f203f165d0d378e5843a057ba9abbb9039e7965b8b0767de084
Parent
275da70f8cc6b94…
1 file changed
+4
+4
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1789,10 +1789,14 @@ | ||
| 1789 | 1789 | /* Undocumented query parameter to set JS mode */ |
| 1790 | 1790 | builtin_set_js_delivery_mode(P("jsmode"),1); |
| 1791 | 1791 | |
| 1792 | 1792 | secondaryRid = name_to_typed_rid(P("sel2"),"ci"); |
| 1793 | 1793 | selectedRid = name_to_typed_rid(P("sel1"),"ci"); |
| 1794 | + if( from_rid!=0 && to_rid!=0 ){ | |
| 1795 | + if( selectedRid==0 ) selectedRid = from_rid; | |
| 1796 | + if( secondaryRid==0 ) secondaryRid = to_rid; | |
| 1797 | + } | |
| 1794 | 1798 | tmFlags |= timeline_ss_submenu(); |
| 1795 | 1799 | cookie_link_parameter("advm","advm","0"); |
| 1796 | 1800 | advancedMenu = atoi(PD("advm","0")); |
| 1797 | 1801 | |
| 1798 | 1802 | /* Omit all cherry-pick merge lines if the "ncp" query parameter is |
| 1799 | 1803 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1789,10 +1789,14 @@ | |
| 1789 | /* Undocumented query parameter to set JS mode */ |
| 1790 | builtin_set_js_delivery_mode(P("jsmode"),1); |
| 1791 | |
| 1792 | secondaryRid = name_to_typed_rid(P("sel2"),"ci"); |
| 1793 | selectedRid = name_to_typed_rid(P("sel1"),"ci"); |
| 1794 | tmFlags |= timeline_ss_submenu(); |
| 1795 | cookie_link_parameter("advm","advm","0"); |
| 1796 | advancedMenu = atoi(PD("advm","0")); |
| 1797 | |
| 1798 | /* Omit all cherry-pick merge lines if the "ncp" query parameter is |
| 1799 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1789,10 +1789,14 @@ | |
| 1789 | /* Undocumented query parameter to set JS mode */ |
| 1790 | builtin_set_js_delivery_mode(P("jsmode"),1); |
| 1791 | |
| 1792 | secondaryRid = name_to_typed_rid(P("sel2"),"ci"); |
| 1793 | selectedRid = name_to_typed_rid(P("sel1"),"ci"); |
| 1794 | if( from_rid!=0 && to_rid!=0 ){ |
| 1795 | if( selectedRid==0 ) selectedRid = from_rid; |
| 1796 | if( secondaryRid==0 ) secondaryRid = to_rid; |
| 1797 | } |
| 1798 | tmFlags |= timeline_ss_submenu(); |
| 1799 | cookie_link_parameter("advm","advm","0"); |
| 1800 | advancedMenu = atoi(PD("advm","0")); |
| 1801 | |
| 1802 | /* Omit all cherry-pick merge lines if the "ncp" query parameter is |
| 1803 |