mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
some ui cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ff05a7dc2e
commit
5b902cd94c
@ -355,7 +355,7 @@ module.PortableAppControl = core.ImageGridFeatures.Feature({
|
||||
handlers: [
|
||||
// update window title...
|
||||
// XXX make this generic...
|
||||
['focusImage',
|
||||
['focusImage clear',
|
||||
function(){
|
||||
if(this.images){
|
||||
var img = this.images[this.current]
|
||||
|
||||
@ -2380,6 +2380,7 @@ var UICollectionActions = actions.Actions({
|
||||
//
|
||||
// XXX would be nice to make this nested (i.e. path list) -- collection grouping... (???)
|
||||
// XXX should we use options object???
|
||||
// XXX might need to check (in a standard way) that nothing is loaded...
|
||||
browseCollections: ['Collections/$Collections...',
|
||||
core.doc`Collection list...
|
||||
|
||||
@ -2423,6 +2424,12 @@ var UICollectionActions = actions.Actions({
|
||||
.addClass('highlighted')
|
||||
})
|
||||
|
||||
// nothing loaded...
|
||||
if(that.data.length == 0 && that.collection == null){
|
||||
make.Empty('No collections...')
|
||||
return
|
||||
}
|
||||
|
||||
var openHandler = function(_, title){
|
||||
var title = $(this).find('.text').attr('text') || title
|
||||
// create collection if it does not exist...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user