Fossil SCM
Do no update the display cookie except when the user specifically changes the selectors on the /timeline submenu.
Commit
802939b18d433e369ba4d2fb51aec2e0834b5e346eb20f6d06cb14eebdef25c6
Parent
e2a90ed56e06205…
2 files changed
+1
-1
+2
-1
+1
-1
| --- src/cookies.c | ||
| +++ src/cookies.c | ||
| @@ -173,11 +173,11 @@ | ||
| 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 |
| --- src/cookies.c | |
| +++ src/cookies.c | |
| @@ -173,11 +173,11 @@ | |
| 173 | |
| 174 | /* Update the user preferences cookie, if necessary, and shut down this |
| 175 | ** module |
| 176 | */ |
| 177 | void cookie_render(void){ |
| 178 | if( cookies.bChanged ){ |
| 179 | Blob new; |
| 180 | int i; |
| 181 | blob_init(&new, 0, 0); |
| 182 | for(i=0;i<cookies.nParam;i++){ |
| 183 | if( i>0 ) blob_append(&new, ",", 1); |
| 184 |
| --- src/cookies.c | |
| +++ src/cookies.c | |
| @@ -173,11 +173,11 @@ | |
| 173 | |
| 174 | /* Update the user preferences cookie, if necessary, and shut down this |
| 175 | ** module |
| 176 | */ |
| 177 | void cookie_render(void){ |
| 178 | if( cookies.bChanged && P("udc")!=0 ){ |
| 179 | Blob new; |
| 180 | int i; |
| 181 | blob_init(&new, 0, 0); |
| 182 | for(i=0;i<cookies.nParam;i++){ |
| 183 | if( i>0 ) blob_append(&new, ",", 1); |
| 184 |
+2
-1
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -543,11 +543,12 @@ | ||
| 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 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -543,11 +543,12 @@ | |
| 543 | */ |
| 544 | cgi_destination(CGI_HEADER); |
| 545 | if( nSubmenu+nSubmenuCtrl>0 ){ |
| 546 | int i; |
| 547 | if( nSubmenuCtrl ){ |
| 548 | cgi_printf("<form id='f01' method='GET' action='%R/%s'>", g.zPath); |
| 549 | } |
| 550 | @ <div class="submenu"> |
| 551 | if( nSubmenu>0 ){ |
| 552 | qsort(aSubmenu, nSubmenu, sizeof(aSubmenu[0]), submenuCompare); |
| 553 | for(i=0; i<nSubmenu; i++){ |
| 554 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -543,11 +543,12 @@ | |
| 543 | */ |
| 544 | cgi_destination(CGI_HEADER); |
| 545 | if( nSubmenu+nSubmenuCtrl>0 ){ |
| 546 | int i; |
| 547 | if( nSubmenuCtrl ){ |
| 548 | @ <form id='f01' method='GET' action='%R/%s(g.zPath)'> |
| 549 | @ <input type='hidden' name='udc' value='1'> |
| 550 | } |
| 551 | @ <div class="submenu"> |
| 552 | if( nSubmenu>0 ){ |
| 553 | qsort(aSubmenu, nSubmenu, sizeof(aSubmenu[0]), submenuCompare); |
| 554 | for(i=0; i<nSubmenu; i++){ |
| 555 |