NIHVIVO-161 Transfer thumbnail preview coordinates to hidden form fields to be received by the controller.
This commit is contained in:
parent
ebba9909fb
commit
b1a35f1588
1 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,14 @@
|
|||
});
|
||||
}
|
||||
};
|
||||
|
||||
$('#submitPhoto').click(function() {
|
||||
var preview = $('#preview');
|
||||
$('input[name=x]').val(preview.css('marginLeft').replace(/[^\d-]/g,''));
|
||||
$('input[name=y]').val(preview.css('marginTop').replace(/[^\d-]/g,''));
|
||||
$('input[name=w]').val(preview.css('width').replace(/[^\d-]/g,''));
|
||||
$('input[name=h]').val(preview.css('height').replace(/[^\d-]/g,''));
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue