From 016cc651cf02d3f1594b0884806ccb64a6a8b4e4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 13 Sep 2013 17:30:34 +0400 Subject: [PATCH] minor tweaking... Signed-off-by: Alex A. Naanou --- ui/ui.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/ui.js b/ui/ui.js index 021ce6d7..3894fcf9 100755 --- a/ui/ui.js +++ b/ui/ui.js @@ -738,7 +738,7 @@ function formDialog(root, message, config, btn, cls){ }) // XXX test if all required stuff is filled... - res.resolve(data) + res.resolve(data, form) hideOverlay(root) }) @@ -997,14 +997,14 @@ function showImageInfo(){ // editable fields... '
'+ - // XXX this expanding to a too big size will not scroll... + // XXX this expanding to a too big size will mess up the screen... // add per editable and global dialog max-height and overflow 'Comment: '+ comment +''+ ''+ '') - // XXX hanck??? - .done(function(){ - var comment = $('.dialog .comment').html().replace(/
/ig, '\n') + .done(function(_, form){ + //var comment = $('.dialog .comment').html().replace(/
/ig, '\n') + var comment = form.find('.comment').html().replace(/
/ig, '\n') if(comment.trim() == ''){ delete data.comment