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: |
'+
''+
'')
- // 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