diff --git a/public/js/crop_editor.js b/public/js/crop_editor.js index 11b26e5..e010d03 100644 --- a/public/js/crop_editor.js +++ b/public/js/crop_editor.js @@ -146,7 +146,7 @@ CropEditor.prototype.save = function() { source_x: this.source_x.value, source_y: this.source_y.value }; - var req = HttpRequest("post", this.parent.action + "?id=" + this.opt.asset_id + "&updatethumb", + var req = HttpRequest("post", this.opt.submitUrl + "?id=" + this.opt.asset_id + "&updatethumb", "data=" + encodeURIComponent(JSON.stringify(payload)), function(response) { this.opt.after_save(response); this.hide(); diff --git a/templates/EditAssetForm.php b/templates/EditAssetForm.php index 7ba33cf..b80fa1a 100644 --- a/templates/EditAssetForm.php +++ b/templates/EditAssetForm.php @@ -193,6 +193,7 @@ class EditAssetForm extends SubTemplate