Fossil

Check-in [802939b1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Do no update the display cookie except when the user specifically changes the selectors on the /timeline submenu.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:802939b18d433e369ba4d2fb51aec2e0834b5e346eb20f6d06cb14eebdef25c6
User & Date: drh 2018-03-17 23:11:39
Context
2018-03-19
20:24
If the dp= and r= query parameters are both supplied to /timeline, use only the r= query parameter and ignore dp=. check-in: 7c690c08 user: drh tags: trunk
19:55
This doesn't quite work, so I'll try a different approach. Was: When clicking on the "Move to branch ...." links in the timeline, show only check-ins relevant to that branch. Closed-Leaf check-in: 63b967e0 user: drh tags: mistake
2018-03-17
23:11
Do no update the display cookie except when the user specifically changes the selectors on the /timeline submenu. check-in: 802939b1 user: drh tags: trunk
22:32
Fix harmless compiler warning. check-in: e2a90ed5 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/cookies.c.

   171    171     cookie_readwrite(zQP, zPName, zDflt, COOKIE_READ|COOKIE_WRITE);
   172    172   }
   173    173   
   174    174   /* Update the user preferences cookie, if necessary, and shut down this
   175    175   ** module
   176    176   */
   177    177   void cookie_render(void){
   178         -  if( cookies.bChanged ){
          178  +  if( cookies.bChanged && P("udc")!=0 ){
   179    179       Blob new;
   180    180       int i;
   181    181       blob_init(&new, 0, 0);
   182    182       for(i=0;i<cookies.nParam;i++){
   183    183         if( i>0 ) blob_append(&new, ",", 1);
   184    184         blob_appendf(&new, "%s=%T",
   185    185             cookies.aParam[i].zPName, cookies.aParam[i].zPValue);

Changes to src/style.c.

   541    541     ** creation of the submenu until the end so that we can add elements
   542    542     ** to the submenu while generating page text.
   543    543     */
   544    544     cgi_destination(CGI_HEADER);
   545    545     if( nSubmenu+nSubmenuCtrl>0 ){
   546    546       int i;
   547    547       if( nSubmenuCtrl ){
   548         -      cgi_printf("<form id='f01' method='GET' action='%R/%s'>", g.zPath);
          548  +      @ <form id='f01' method='GET' action='%R/%s(g.zPath)'>
          549  +      @ <input type='hidden' name='udc' value='1'>
   549    550       }
   550    551       @ <div class="submenu">
   551    552       if( nSubmenu>0 ){
   552    553         qsort(aSubmenu, nSubmenu, sizeof(aSubmenu[0]), submenuCompare);
   553    554         for(i=0; i<nSubmenu; i++){
   554    555           struct Submenu *p = &aSubmenu[i];
   555    556           if( p->zLink==0 ){