Fossil

Check-in [e32803bb]
Login

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

Overview
Comment:Cherrypick [2e9ac33a9a]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e32803bbf64c5cf9ad20ecca050c262ecf47198d
User & Date: andygoth 2016-11-05 03:14:17
Context
2016-11-05
03:17
Add missing close angle bracket omitted by previous commit check-in: 2dd29534 user: andygoth tags: trunk
03:14
Cherrypick [2e9ac33a9a] check-in: e32803bb user: andygoth tags: trunk
03:06
Remove extra class='submenuctrl' from checkbox input because already present in the enclosing <label> check-in: bccaea60 user: andygoth tags: trunk
2016-11-04
15:52
Change style_submenu_entry() to allow zero and negative iSize. Zero iSize means display size and length limit are not specified, and negative iSize means no length limit is specified but the display size is set to the absolute value of iSize. check-in: 2e9ac33a user: andygoth tags: andygoth-timeline-ms
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/style.c.

542
543
544
545
546
547
548
549
550
551
552
553
554

555




556
557
558
559
560
561


562
563
564
565
566
567
568
      const char *zQPN = aSubmenuCtrl[i].zName;
      const char *zDisabled = " disabled";
      if( !aSubmenuCtrl[i].isDisabled ){
        zDisabled = "";
        cgi_tag_query_parameter(zQPN);
      }
      switch( aSubmenuCtrl[i].eType ){
        case FF_ENTRY: {
          cgi_printf(
             "<span class='submenuctrl'>"
             "&nbsp;%h<input type='text' name='%s' size='%d' maxlength='%d'"
             " value='%h'%s></span>\n",
             aSubmenuCtrl[i].zLabel,

             zQPN,




             aSubmenuCtrl[i].iSize, aSubmenuCtrl[i].iSize,
             PD(zQPN,""),
             zDisabled
          );
          break;
        }


        case FF_MULTI: {
          int j;
          const char *zVal = P(zQPN);
          if( aSubmenuCtrl[i].zLabel ){
            cgi_printf("&nbsp;%h", aSubmenuCtrl[i].zLabel);
          }
          cgi_printf(







|


|
<
|
>
|
>
>
>
>
|
<
<
|
<
|
>
>







542
543
544
545
546
547
548
549
550
551
552

553
554
555
556
557
558
559
560


561

562
563
564
565
566
567
568
569
570
571
      const char *zQPN = aSubmenuCtrl[i].zName;
      const char *zDisabled = " disabled";
      if( !aSubmenuCtrl[i].isDisabled ){
        zDisabled = "";
        cgi_tag_query_parameter(zQPN);
      }
      switch( aSubmenuCtrl[i].eType ){
        case FF_ENTRY:
          cgi_printf(
             "<span class='submenuctrl'>"
             "&nbsp;%h<input type='text' name='%s' value='%h'%s",

             aSubmenuCtrl[i].zLabel, zQPN, PD(zQPN, ""), zDisabled
          );
          if( aSubmenuCtrl[i].iSize<0 ){
             cgi_printf(" size='%d'", -aSubmenuCtrl[i].iSize);
          }else if( aSubmenuCtrl[i].iSize>0 ){
             cgi_printf(
                " size='%d' maxlength='%d'",
                aSubmenuCtrl[i].iSize, aSubmenuCtrl[i].iSize


             );

          }
          @ </span>
          break;
        case FF_MULTI: {
          int j;
          const char *zVal = P(zQPN);
          if( aSubmenuCtrl[i].zLabel ){
            cgi_printf("&nbsp;%h", aSubmenuCtrl[i].zLabel);
          }
          cgi_printf(