From e1fc7e3a661ca5a1e1fd76bf7bbc875f61102be0 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 13 Sep 2013 17:25:19 +0400 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- ui/ui.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/ui/ui.js b/ui/ui.js index c2ddbb54..021ce6d7 100755 --- a/ui/ui.js +++ b/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 : */