mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
minor fix + docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0924383bcd
commit
b2044eb7a1
@ -579,6 +579,7 @@ var KeyboardActions = actions.Actions({
|
||||
// NOTE: care must be taken when using or binding to this (especially
|
||||
// the .pre stage) as this may introduce a lag into user input.
|
||||
keyPress: ['- Interface/Handle key or keyboard event',
|
||||
{ keepDialogTitle: true },
|
||||
function(key, no_match){
|
||||
var that = this
|
||||
var did_handling = false
|
||||
|
||||
@ -579,7 +579,8 @@ module.Dialogs = core.ImageGridFeatures.Feature({
|
||||
var elem = res.dom
|
||||
|
||||
!elem.attr('keep-dialog-title')
|
||||
elem.attr('dialog-title', this.getDocTitle(action))
|
||||
&& !this.getActionAttr(action, 'keepDialogTitle')
|
||||
&& elem.attr('dialog-title', this.getDocTitle(action))
|
||||
}
|
||||
}],
|
||||
],
|
||||
|
||||
@ -2784,6 +2784,12 @@ var BrowserPrototype = {
|
||||
}
|
||||
|
||||
// load the initial state...
|
||||
//
|
||||
// NOTE: this used to be run in the timeout below, it turned out
|
||||
// to be a really bad idea mainly because the events bound
|
||||
// in .list(..) turned out to be bound AFTER the events bound
|
||||
// in the function that called the constructor, which messed
|
||||
// up the triggering order...
|
||||
that.update(options.path || that.path || '/')
|
||||
|
||||
// Select the default path...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user