mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-16 08:11:39 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a23acab9ec
commit
e1fc7e3a66
24
ui/ui.js
24
ui/ui.js
@ -1016,30 +1016,6 @@ function showImageInfo(){
|
||||
}
|
||||
|
||||
|
||||
// XXX use a text area instead of a text field...
|
||||
function imageCommentDialog(){
|
||||
var gid = getImageGID()
|
||||
var data = IMAGES[gid]
|
||||
var name = data.path.split('/').pop().split('.')[0]
|
||||
var comment = data.comment
|
||||
comment = comment == null ? '' : comment
|
||||
|
||||
return formDialog(null, name +' Comment:',
|
||||
{'': comment},
|
||||
'Save',
|
||||
'imageCommentDialog')
|
||||
.done(function(res){
|
||||
comment = res['']
|
||||
if(comment.trim() == ''){
|
||||
delete data.comment
|
||||
} else {
|
||||
data.comment = comment
|
||||
}
|
||||
IMAGES_UPDATED.push(gid)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* vim:set ts=4 sw=4 nowrap : */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user