Fossil

Check-in [b6a824ec]
Login

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

Overview
Comment:Change Files/Folders selection to a Folders Only checkbox
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b6a824eccbef579878c95f5b63d6034b79795e83
User & Date: andygoth 2016-11-05 13:57:35
Context
2016-11-05
14:04
Replace Show/Hide Cookies in test_env page with a checkbox check-in: 7814e9b5 user: andygoth tags: trunk
13:57
Change Files/Folders selection to a Folders Only checkbox check-in: b6a824ec user: andygoth tags: trunk
06:38
Rework style.c to use new line continuation feature of translate.c check-in: 9c211011 user: andygoth tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/browse.c.

687
688
689
690
691
692
693
694
695
696
697
698


699
700
701
702
703
704
705
  }

  if( showDirOnly ){
    for(nFile=0, p=sTree.pFirst; p; p=p->pNext){
      if( p->pChild!=0 && p->nFullName>nD ) nFile++;
    }
    zObjType = "Folders";
    style_submenu_element("Files", "%s", url_render(&sURI,"nofiles",0,0,0));
  }else{
    zObjType = "Files";
    style_submenu_element("Folders", "%s", url_render(&sURI,"nofiles","1",0,0));
  }



  if( zCI ){
    @ <h2>%s(zObjType) from
    if( sqlite3_strnicmp(zCI, zUuid, (int)strlen(zCI))!=0 ){
      @ "%h(zCI)"
    }
    @ [%z(href("vinfo?name=%!S",zUuid))%S(zUuid)</a>] %s(blob_str(&dirname))







<


<

>
>







687
688
689
690
691
692
693

694
695

696
697
698
699
700
701
702
703
704
705
  }

  if( showDirOnly ){
    for(nFile=0, p=sTree.pFirst; p; p=p->pNext){
      if( p->pChild!=0 && p->nFullName>nD ) nFile++;
    }
    zObjType = "Folders";

  }else{
    zObjType = "Files";

  }

  style_submenu_checkbox("nofiles", "Folders Only", 0);

  if( zCI ){
    @ <h2>%s(zObjType) from
    if( sqlite3_strnicmp(zCI, zUuid, (int)strlen(zCI))!=0 ){
      @ "%h(zCI)"
    }
    @ [%z(href("vinfo?name=%!S",zUuid))%S(zUuid)</a>] %s(blob_str(&dirname))