minor tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-09-13 17:30:34 +04:00
parent e1fc7e3a66
commit 016cc651cf

View File

@ -738,7 +738,7 @@ function formDialog(root, message, config, btn, cls){
}) })
// XXX test if all required stuff is filled... // XXX test if all required stuff is filled...
res.resolve(data) res.resolve(data, form)
hideOverlay(root) hideOverlay(root)
}) })
@ -997,14 +997,14 @@ function showImageInfo(){
// editable fields... // editable fields...
'<tr><td colspan="2"><hr></td></tr>'+ '<tr><td colspan="2"><hr></td></tr>'+
// 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 // add per editable and global dialog max-height and overflow
'<tr><td>Comment: </td><td class="comment" contenteditable>'+ comment +'</td></tr>'+ '<tr><td>Comment: </td><td class="comment" contenteditable>'+ comment +'</td></tr>'+
'</table>'+ '</table>'+
'</div>') '</div>')
// XXX hanck??? .done(function(_, form){
.done(function(){ //var comment = $('.dialog .comment').html().replace(/<br>/ig, '\n')
var comment = $('.dialog .comment').html().replace(/<br>/ig, '\n') var comment = form.find('.comment').html().replace(/<br>/ig, '\n')
if(comment.trim() == ''){ if(comment.trim() == ''){
delete data.comment delete data.comment