some ui cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-01-04 07:42:09 +03:00
parent ff05a7dc2e
commit 5b902cd94c
2 changed files with 8 additions and 1 deletions

View File

@ -355,7 +355,7 @@ module.PortableAppControl = core.ImageGridFeatures.Feature({
handlers: [ handlers: [
// update window title... // update window title...
// XXX make this generic... // XXX make this generic...
['focusImage', ['focusImage clear',
function(){ function(){
if(this.images){ if(this.images){
var img = this.images[this.current] var img = this.images[this.current]

View File

@ -2380,6 +2380,7 @@ var UICollectionActions = actions.Actions({
// //
// XXX would be nice to make this nested (i.e. path list) -- collection grouping... (???) // XXX would be nice to make this nested (i.e. path list) -- collection grouping... (???)
// XXX should we use options object??? // XXX should we use options object???
// XXX might need to check (in a standard way) that nothing is loaded...
browseCollections: ['Collections/$Collections...', browseCollections: ['Collections/$Collections...',
core.doc`Collection list... core.doc`Collection list...
@ -2423,6 +2424,12 @@ var UICollectionActions = actions.Actions({
.addClass('highlighted') .addClass('highlighted')
}) })
// nothing loaded...
if(that.data.length == 0 && that.collection == null){
make.Empty('No collections...')
return
}
var openHandler = function(_, title){ var openHandler = function(_, title){
var title = $(this).find('.text').attr('text') || title var title = $(this).find('.text').attr('text') || title
// create collection if it does not exist... // create collection if it does not exist...