added filter modes to browser dialog...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2015-06-18 00:23:23 +03:00
parent 3dbd5367e5
commit d0f42e388a
2 changed files with 9 additions and 1 deletions

View File

@ -117,7 +117,10 @@
/* XXX need to make the next two different... */
.browse .list div.filtered-out {
display: none;
opacity: 0.5;
}
.browse:not(.show-filtered-out) .list div.filtered-out {
display: none;
}
.browse .list div.disabled {
opacity: 0.3;

View File

@ -227,6 +227,7 @@ var BrowserPrototype = {
// - esc to cancel and reset
// XXX BUG: when starting with '/' key the '/' gets appended to the
// field...
// XXX make this a toggler...
startFilter: function(){
var range = document.createRange()
var selection = window.getSelection()
@ -262,6 +263,10 @@ var BrowserPrototype = {
get filtering(){
return this.dom.find('.path .dir.cur[contenteditable]').length > 0
},
toggleFilterMode: function(){
this.dom.toggleClass('show-filtered-out')
return this
},
// Select a list element...
//