-
Notifications
You must be signed in to change notification settings - Fork 0
JS Modifications
JoanVt edited this page Aug 21, 2017
·
2 revisions
Lines are approximating, probably it may vary.
Find: (Line~456)
dataOK = {
action: 'crop',
image: image.name,
coords: coords,
rotate: rotation,
data: self.options.data
};
Replace to this:
dataOK = {
action: 'crop',
image: image.name,
coords: coords,
rotate: rotation,
data: self.options.data
path: image.path
};
Find (Line~404)
imagePreview = this.options.previewUrl + '?action=preview&file=' + image.name + '&width=800,
to this
imagePreview = this.options.previewUrl + '?action=preview&file=' + image.name + '&width=800&path='+image.path,
Find (Line ~ 515):
$.post(this.options.url, {action: 'delete', data: this.options.data, _token:this.options.data._token , file: this.image.name});
Replace to this:
$.post(this.options.url, {_method: 'delete', data: this.options.data, _token:this.options.data._token , file: this.image.name, path:this.image.path});