Skip to content

Commit

Permalink
MINOR: Expose UploadInterface as browser global
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Carlino committed Apr 27, 2016
1 parent efcde94 commit 97f3255
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion javascript/file_attachment_field.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ function q(selector, context) {
return [].slice.call(node.querySelectorAll(selector));
}

// Expose UploadInterface as a browser global
window.UploadInterface = UploadInterface;

// If entwine is available, i.e. CMS, use it.
if(typeof jQuery === 'function' && typeof jQuery.entwine === 'function') {
jQuery('.dropzone-holder').entwine({
Expand Down Expand Up @@ -568,4 +571,4 @@ else {
});
});
}
})();
})();

0 comments on commit 97f3255

Please sign in to comment.