Browse Source

Rename disabledUpload option

pull/301/head
A---- 9 years ago
parent
commit
dcf8219a93
  1. 2
      src/asset_manager/view/FileUploader.js
  2. 2
      test/specs/asset_manager/view/FileUploader.js

2
src/asset_manager/view/FileUploader.js

@ -20,7 +20,7 @@ module.exports = Backbone.View.extend({
this.ppfx = c.pStylePrefix || '';
this.target = this.options.globalCollection || {};
this.uploadId = this.pfx + 'uploadFile';
this.disabled = c.disabled !== undefined ? c.disabled : !c.upload && !c.embedAsBase64;
this.disabled = c.disableUpload !== undefined ? c.disableUpload : !c.upload && !c.embedAsBase64;
this.events['change #' + this.uploadId] = 'uploadFile';
let uploadFile = c.uploadFile;

2
test/specs/asset_manager/view/FileUploader.js

@ -65,7 +65,7 @@ module.exports = {
it('Could be disabled', () => {
var view = new FileUploader({ config : {
disabled: true,
disableUpload: true,
upload: 'something'
} });
view.render();

Loading…
Cancel
Save