Fossil SCM

Change Files/Folders selection to a Folders Only checkbox

andygoth 2016-11-05 13:57 trunk
Commit b6a824eccbef579878c95f5b63d6034b79795e83
1 file changed +2 -2
+2 -2
--- src/browse.c
+++ src/browse.c
@@ -689,15 +689,15 @@
689689
if( showDirOnly ){
690690
for(nFile=0, p=sTree.pFirst; p; p=p->pNext){
691691
if( p->pChild!=0 && p->nFullName>nD ) nFile++;
692692
}
693693
zObjType = "Folders";
694
- style_submenu_element("Files", "%s", url_render(&sURI,"nofiles",0,0,0));
695694
}else{
696695
zObjType = "Files";
697
- style_submenu_element("Folders", "%s", url_render(&sURI,"nofiles","1",0,0));
698696
}
697
+
698
+ style_submenu_checkbox("nofiles", "Folders Only", 0);
699699
700700
if( zCI ){
701701
@ <h2>%s(zObjType) from
702702
if( sqlite3_strnicmp(zCI, zUuid, (int)strlen(zCI))!=0 ){
703703
@ "%h(zCI)"
704704
--- 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

Keyboard Shortcuts

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