app/javascript/spotlight/admin/crop.js in blacklight-spotlight-3.6.0.beta4 vs app/javascript/spotlight/admin/crop.js in blacklight-spotlight-3.6.0.beta5
- old
+ new
@@ -1,7 +1,7 @@
-import { addImageSelector } from 'add_image_selector'
-import Spotlight from 'spotlight'
+import { addImageSelector } from 'spotlight/admin/add_image_selector'
+import Core from 'spotlight/core'
export default class Crop {
constructor(cropArea) {
this.cropArea = cropArea;
this.cropArea.data('iiifCropper', this);
@@ -263,10 +263,10 @@
success: (data, stat, xhr) => this.successHandler(data, stat, xhr),
// error: errorHandler,
// Form data
data: this.getData(),
headers: {
- 'X-CSRF-Token': Spotlight.csrfToken() || ''
+ 'X-CSRF-Token': Core.csrfToken() || ''
},
//Options to tell jQuery not to process data or worry about content-type.
cache: false,
contentType: false,
processData: false