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,6 +117,9 @@
|
|||||||
|
|
||||||
/* XXX need to make the next two different... */
|
/* XXX need to make the next two different... */
|
||||||
.browse .list div.filtered-out {
|
.browse .list div.filtered-out {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
.browse:not(.show-filtered-out) .list div.filtered-out {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.browse .list div.disabled {
|
.browse .list div.disabled {
|
||||||
|
|||||||
@ -227,6 +227,7 @@ var BrowserPrototype = {
|
|||||||
// - esc to cancel and reset
|
// - esc to cancel and reset
|
||||||
// XXX BUG: when starting with '/' key the '/' gets appended to the
|
// XXX BUG: when starting with '/' key the '/' gets appended to the
|
||||||
// field...
|
// field...
|
||||||
|
// XXX make this a toggler...
|
||||||
startFilter: function(){
|
startFilter: function(){
|
||||||
var range = document.createRange()
|
var range = document.createRange()
|
||||||
var selection = window.getSelection()
|
var selection = window.getSelection()
|
||||||
@ -262,6 +263,10 @@ var BrowserPrototype = {
|
|||||||
get filtering(){
|
get filtering(){
|
||||||
return this.dom.find('.path .dir.cur[contenteditable]').length > 0
|
return this.dom.find('.path .dir.cur[contenteditable]').length > 0
|
||||||
},
|
},
|
||||||
|
toggleFilterMode: function(){
|
||||||
|
this.dom.toggleClass('show-filtered-out')
|
||||||
|
return this
|
||||||
|
},
|
||||||
|
|
||||||
// Select a list element...
|
// Select a list element...
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user