mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 10:50:08 +00:00
minor tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e1fc7e3a66
commit
016cc651cf
10
ui/ui.js
10
ui/ui.js
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user