mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 03:40:09 +00:00
minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5fb722d036
commit
768f51b622
@ -221,9 +221,14 @@ $(function(){
|
||||
})
|
||||
*/
|
||||
|
||||
|
||||
console.log(localStorage[DATA_ATTR + '_BASE_URL'])
|
||||
|
||||
|
||||
// we have an image file...
|
||||
if((DATA_ATTR + '_BASE_URL') in localStorage
|
||||
&& !/.[\/\\]*/.test(localStorage[DATA_ATTR + '_BASE_URL'])){
|
||||
&& !/^\.[\/\\]*/.test(localStorage[DATA_ATTR + '_BASE_URL'])){
|
||||
|
||||
BASE_URL = localStorage[DATA_ATTR + '_BASE_URL']
|
||||
|
||||
var loading = statusNotify(loadDir(BASE_URL))
|
||||
|
||||
@ -77,6 +77,7 @@ var KEYBOARD_CONFIG = {
|
||||
Enter: doc('Accept dialog',
|
||||
function(){
|
||||
getOverlay($('.viewer')).trigger('accept')
|
||||
hideOverlay($('.viewer'))
|
||||
}),
|
||||
Esc: doc('Close dialog',
|
||||
function(){
|
||||
@ -276,12 +277,11 @@ var KEYBOARD_CONFIG = {
|
||||
// XXX STUB: use a real path browser...
|
||||
O: doc('Open a directory path',
|
||||
function(){
|
||||
var path = prompt('Path to open', BASE_URL)
|
||||
if(path == null){
|
||||
return
|
||||
}
|
||||
path = path.trim()
|
||||
statusNotify(loadDir(path))
|
||||
prompt('Path to open', BASE_URL)
|
||||
.done(function(path){
|
||||
path = path.trim()
|
||||
statusNotify(loadDir(path))
|
||||
})
|
||||
}),
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user