minor cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-05-15 03:19:38 +03:00
parent be87c9831c
commit e8c59924e9
2 changed files with 10 additions and 4 deletions

View File

@ -50,7 +50,7 @@
/* title */ /* title */
.content>*:before { .content>*:before {
position: absolute; position: absolute;
content: attr(title); content: attr(dialog-title);
bottom: 100%; bottom: 100%;

View File

@ -575,8 +575,11 @@ module.Dialogs = core.ImageGridFeatures.Feature({
if(res instanceof jQuery || (res instanceof widget.Widget)){ if(res instanceof jQuery || (res instanceof widget.Widget)){
var elem = (res.dom || res) var elem = (res.dom || res)
!elem.attr('title') && elem.attr('title', !elem.attr('dialog-title')
(this.getDoc(action)[action].shift() || action).split(/[\\\/]/g).pop()) && elem.attr(
'dialog-title',
(this.getDoc(action)[action].shift() || action)
.split(/[\\\/]/g).pop())
} }
}], }],
], ],
@ -587,15 +590,18 @@ module.Dialogs = core.ImageGridFeatures.Feature({
/*********************************************************************/ /*********************************************************************/
// NOTE: yes, this is a funny name ;) // NOTE: yes, this is a funny name ;)
//
// XXX should we also add a hide-path config feature???
var BrowseActionsActions = actions.Actions({ var BrowseActionsActions = actions.Actions({
config: { config: {
'action-category-order': [ 'action-category-order': [
'99:File', '99:File',
// NOTE: we can order any sub-tree we want in the same // NOTE: we can order any sub-tree we want in the same
// manner as the root... // manner as the root...
// XXX for some reason only one of the following works...
'File/-80:Clear viewer', 'File/-80:Clear viewer',
'File/-90:Close viewer', 'File/-90:Close viewer',
// NOTE: non existing elements will not get drawn...
//'File/-99:moo',
'80:Edit', '80:Edit',
'70:Navigate', '70:Navigate',
'60:Image', '60:Image',