mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-03 04:40:10 +00:00
added window title update with image name...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
952618f1a2
commit
6742a91902
@ -82,6 +82,11 @@ if(window.CEF_dumpJSON != null){
|
|||||||
window.reload = function(){
|
window.reload = function(){
|
||||||
gui.Window.get().reload()
|
gui.Window.get().reload()
|
||||||
}
|
}
|
||||||
|
window.setWindowTitle = function(text){
|
||||||
|
var title = text +' - '+ APP_NAME
|
||||||
|
gui.Window.get().title = title
|
||||||
|
$('.title-bar .title').text(title)
|
||||||
|
}
|
||||||
|
|
||||||
// load UI stuff...
|
// load UI stuff...
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
//var DEBUG = DEBUG != null ? DEBUG : true
|
//var DEBUG = DEBUG != null ? DEBUG : true
|
||||||
|
|
||||||
|
var APP_NAME = 'ImageGrid.Viewer'
|
||||||
|
|
||||||
var DATA_ATTR = 'DATA'
|
var DATA_ATTR = 'DATA'
|
||||||
|
|
||||||
var LOAD_SCREENS = 6
|
var LOAD_SCREENS = 6
|
||||||
|
|||||||
@ -211,6 +211,10 @@ function setupDataBindings(viewer){
|
|||||||
.on('focusingImage', function(evt, image){
|
.on('focusingImage', function(evt, image){
|
||||||
image = $(image)
|
image = $(image)
|
||||||
DATA.current = getImageGID(image)
|
DATA.current = getImageGID(image)
|
||||||
|
|
||||||
|
if(window.setWindowTitle != null){
|
||||||
|
setWindowTitle(IMAGES[getImageGID(image)].path.split('/').pop())
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user