mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-26 13:01:58 +00:00
added filter modes to browser dialog...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3dbd5367e5
commit
d0f42e388a
@ -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;
|
||||
|
||||
@ -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...
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user