mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fix cropper checking
This commit is contained in:
@@ -718,8 +718,9 @@ function um_modal_responsive() {
|
||||
}
|
||||
|
||||
function um_remove_modal() {
|
||||
// jQuery('img.cropper-hidden').cropper('destroy');
|
||||
if ( jQuery('.cropper-hidden').length > 0 ) {
|
||||
cropper.destroy();
|
||||
}
|
||||
|
||||
jQuery('body,html,textarea').css("overflow", "auto");
|
||||
|
||||
|
||||
@@ -111,13 +111,14 @@ jQuery(document).ready(function() {
|
||||
mode = $formWrapper.attr('data-mode');
|
||||
}
|
||||
|
||||
if ( jQuery('.cropper-hidden').length > 0 ) {
|
||||
var data = cropper.getData();
|
||||
var coord = Math.round(data.x) + ',' + Math.round(data.y) + ',' + Math.round(data.width) + ',' + Math.round(data.height);
|
||||
|
||||
}
|
||||
if ( coord ) {
|
||||
|
||||
jQuery(this).html( jQuery(this).attr('data-processing') ).addClass('disabled');
|
||||
console.log(src);
|
||||
|
||||
jQuery.ajax({
|
||||
url: wp.ajax.settings.url,
|
||||
type: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user