Fossil SCM

Set the "Max:" entry box on the /timeline submenu to be size 4 with maxlength of 4.

drh 2015-02-11 15:45 trunk
Commit 245e398384bc812953fe9725b051359e670fa6b4
2 files changed +2 -2 +2 -2
+2 -2
--- src/style.c
+++ src/style.c
@@ -503,15 +503,15 @@
503503
}
504504
switch( aSubmenuCtrl[i].eType ){
505505
case FF_ENTRY: {
506506
cgi_printf(
507507
"<span class='submenuctrl'>"
508
- "&nbsp;%h<input type='text' name='%s' size='%d' "
508
+ "&nbsp;%h<input type='text' name='%s' size='%d' maxlength='%d'"
509509
"value='%h'%s></span>\n",
510510
aSubmenuCtrl[i].zLabel,
511511
zQPN,
512
- aSubmenuCtrl[i].iSize,
512
+ aSubmenuCtrl[i].iSize, aSubmenuCtrl[i].iSize,
513513
PD(zQPN,""),
514514
zDisabled
515515
);
516516
break;
517517
}
518518
--- src/style.c
+++ src/style.c
@@ -503,15 +503,15 @@
503 }
504 switch( aSubmenuCtrl[i].eType ){
505 case FF_ENTRY: {
506 cgi_printf(
507 "<span class='submenuctrl'>"
508 "&nbsp;%h<input type='text' name='%s' size='%d' "
509 "value='%h'%s></span>\n",
510 aSubmenuCtrl[i].zLabel,
511 zQPN,
512 aSubmenuCtrl[i].iSize,
513 PD(zQPN,""),
514 zDisabled
515 );
516 break;
517 }
518
--- src/style.c
+++ src/style.c
@@ -503,15 +503,15 @@
503 }
504 switch( aSubmenuCtrl[i].eType ){
505 case FF_ENTRY: {
506 cgi_printf(
507 "<span class='submenuctrl'>"
508 "&nbsp;%h<input type='text' name='%s' size='%d' maxlength='%d'"
509 "value='%h'%s></span>\n",
510 aSubmenuCtrl[i].zLabel,
511 zQPN,
512 aSubmenuCtrl[i].iSize, aSubmenuCtrl[i].iSize,
513 PD(zQPN,""),
514 zDisabled
515 );
516 break;
517 }
518
+2 -2
--- src/timeline.c
+++ src/timeline.c
@@ -1328,11 +1328,11 @@
13281328
if( p_rid ){
13291329
/* If both p= and d= are set, we don't have the uuid of d yet. */
13301330
zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", d_rid);
13311331
}
13321332
}
1333
- style_submenu_entry("n","Max:",1,0);
1333
+ style_submenu_entry("n","Max:",4,0);
13341334
timeline_y_submenu(1);
13351335
style_submenu_binary("v","With Files","Without Files",
13361336
zType[0]!='a' && zType[0]!='c');
13371337
}else if( f_rid && g.perm.Read ){
13381338
/* If f= is present, ignore all other parameters other than n= */
@@ -1576,11 +1576,11 @@
15761576
if( zType[0]=='a' || zType[0]=='c' ){
15771577
if( (tmFlags & TIMELINE_UNHIDE)==0 ){
15781578
timeline_submenu(&url, "Unhide", "unhide", "", 0);
15791579
}
15801580
}
1581
- style_submenu_entry("n","Max:",1,0);
1581
+ style_submenu_entry("n","Max:",4,0);
15821582
timeline_y_submenu(disableY);
15831583
style_submenu_binary("v","With Files","Without Files",
15841584
zType[0]!='a' && zType[0]!='c');
15851585
}
15861586
}
15871587
--- src/timeline.c
+++ src/timeline.c
@@ -1328,11 +1328,11 @@
1328 if( p_rid ){
1329 /* If both p= and d= are set, we don't have the uuid of d yet. */
1330 zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", d_rid);
1331 }
1332 }
1333 style_submenu_entry("n","Max:",1,0);
1334 timeline_y_submenu(1);
1335 style_submenu_binary("v","With Files","Without Files",
1336 zType[0]!='a' && zType[0]!='c');
1337 }else if( f_rid && g.perm.Read ){
1338 /* If f= is present, ignore all other parameters other than n= */
@@ -1576,11 +1576,11 @@
1576 if( zType[0]=='a' || zType[0]=='c' ){
1577 if( (tmFlags & TIMELINE_UNHIDE)==0 ){
1578 timeline_submenu(&url, "Unhide", "unhide", "", 0);
1579 }
1580 }
1581 style_submenu_entry("n","Max:",1,0);
1582 timeline_y_submenu(disableY);
1583 style_submenu_binary("v","With Files","Without Files",
1584 zType[0]!='a' && zType[0]!='c');
1585 }
1586 }
1587
--- src/timeline.c
+++ src/timeline.c
@@ -1328,11 +1328,11 @@
1328 if( p_rid ){
1329 /* If both p= and d= are set, we don't have the uuid of d yet. */
1330 zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", d_rid);
1331 }
1332 }
1333 style_submenu_entry("n","Max:",4,0);
1334 timeline_y_submenu(1);
1335 style_submenu_binary("v","With Files","Without Files",
1336 zType[0]!='a' && zType[0]!='c');
1337 }else if( f_rid && g.perm.Read ){
1338 /* If f= is present, ignore all other parameters other than n= */
@@ -1576,11 +1576,11 @@
1576 if( zType[0]=='a' || zType[0]=='c' ){
1577 if( (tmFlags & TIMELINE_UNHIDE)==0 ){
1578 timeline_submenu(&url, "Unhide", "unhide", "", 0);
1579 }
1580 }
1581 style_submenu_entry("n","Max:",4,0);
1582 timeline_y_submenu(disableY);
1583 style_submenu_binary("v","With Files","Without Files",
1584 zType[0]!='a' && zType[0]!='c');
1585 }
1586 }
1587

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button