Fossil SCM
Change Files/Folders selection to a Folders Only checkbox
Commit
b6a824eccbef579878c95f5b63d6034b79795e83
Parent
9c211011190bde9…
1 file changed
+2
-2
+2
-2
| --- src/browse.c | ||
| +++ src/browse.c | ||
| @@ -689,15 +689,15 @@ | ||
| 689 | 689 | if( showDirOnly ){ |
| 690 | 690 | for(nFile=0, p=sTree.pFirst; p; p=p->pNext){ |
| 691 | 691 | if( p->pChild!=0 && p->nFullName>nD ) nFile++; |
| 692 | 692 | } |
| 693 | 693 | zObjType = "Folders"; |
| 694 | - style_submenu_element("Files", "%s", url_render(&sURI,"nofiles",0,0,0)); | |
| 695 | 694 | }else{ |
| 696 | 695 | zObjType = "Files"; |
| 697 | - style_submenu_element("Folders", "%s", url_render(&sURI,"nofiles","1",0,0)); | |
| 698 | 696 | } |
| 697 | + | |
| 698 | + style_submenu_checkbox("nofiles", "Folders Only", 0); | |
| 699 | 699 | |
| 700 | 700 | if( zCI ){ |
| 701 | 701 | @ <h2>%s(zObjType) from |
| 702 | 702 | if( sqlite3_strnicmp(zCI, zUuid, (int)strlen(zCI))!=0 ){ |
| 703 | 703 | @ "%h(zCI)" |
| 704 | 704 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -689,15 +689,15 @@ | |
| 689 | if( showDirOnly ){ |
| 690 | for(nFile=0, p=sTree.pFirst; p; p=p->pNext){ |
| 691 | if( p->pChild!=0 && p->nFullName>nD ) nFile++; |
| 692 | } |
| 693 | zObjType = "Folders"; |
| 694 | style_submenu_element("Files", "%s", url_render(&sURI,"nofiles",0,0,0)); |
| 695 | }else{ |
| 696 | zObjType = "Files"; |
| 697 | style_submenu_element("Folders", "%s", url_render(&sURI,"nofiles","1",0,0)); |
| 698 | } |
| 699 | |
| 700 | if( zCI ){ |
| 701 | @ <h2>%s(zObjType) from |
| 702 | if( sqlite3_strnicmp(zCI, zUuid, (int)strlen(zCI))!=0 ){ |
| 703 | @ "%h(zCI)" |
| 704 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -689,15 +689,15 @@ | |
| 689 | if( showDirOnly ){ |
| 690 | for(nFile=0, p=sTree.pFirst; p; p=p->pNext){ |
| 691 | if( p->pChild!=0 && p->nFullName>nD ) nFile++; |
| 692 | } |
| 693 | zObjType = "Folders"; |
| 694 | }else{ |
| 695 | zObjType = "Files"; |
| 696 | } |
| 697 | |
| 698 | style_submenu_checkbox("nofiles", "Folders Only", 0); |
| 699 | |
| 700 | if( zCI ){ |
| 701 | @ <h2>%s(zObjType) from |
| 702 | if( sqlite3_strnicmp(zCI, zUuid, (int)strlen(zCI))!=0 ){ |
| 703 | @ "%h(zCI)" |
| 704 |