Skip to content

Commit

Permalink
Update 4.0.2
Browse files Browse the repository at this point in the history
Removed log messages
Removed 8.0 Deprecations
  • Loading branch information
ChrisdeG committed Sep 6, 2017
1 parent 1c4e209 commit 6ea5340
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 41 deletions.
Binary file modified dist/DropZone.mpk
Binary file not shown.
45 changes: 5 additions & 40 deletions src/DropZone/widget/DropZone.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*jslint browser: true, devel:true, nomen:true, unparam:true, regexp: true*/
/*global define, require, mxui, mx, mendix, Dropzone, logger*/
/*global define, require, mxui, mx, mendix, logger*/

/*
DropZone
========================
@file : Dropzone.js
@version : 4.0.1
@version : 4.0.2
@author : Andries Smit & Chris de Gelder
@date : 06-09-2017
@license : Apache V2
Expand Down Expand Up @@ -46,7 +46,6 @@ define([
uploadButton: null,
dropzone: null,
parallelUploads: 4,
currentParallelUploads: 0,
_contextObj: null,

/**
Expand All @@ -65,7 +64,6 @@ define([
* @returns {undefined}
*/
postCreate: function () {
console.log("XXX", mx.session);
logger.debug(this.id + ".postCreate");
this.initDropZone();
logger.debug('this', this);
Expand All @@ -87,7 +85,6 @@ define([
* @returns {undefined}
*/
initDropZone: function () {
console.log("XXX", mx.session.sessionData.csrftoken);
logger.debug(this.id + ".initDropZone");
domConstruct.empty(this.domNode);
if (!this.autoUpload) {
Expand Down Expand Up @@ -184,9 +181,7 @@ define([
applyto: "selection",
guids: [obj.getGuid()]
},
store: {
caller: this.mxform
},
origin: this.mxform,
callback: dojoLang.hitch(this, function (result) {
file.obj = null;
}),
Expand Down Expand Up @@ -246,9 +241,7 @@ define([
applyto: "selection",
guids: [file.obj.getGuid()]
},
store: {
caller: this.mxform
},
origin: this.mxform,
callback: dojoLang.hitch(this, function (result) {
if (!result) {
callback(rejectcaption);
Expand Down Expand Up @@ -312,32 +305,6 @@ define([
}
});
},
createMendixFile2: function (file, callback) {
logger.debug(this.id + ".createMendixFile", file.name);
mx.data.create({
entity: this.imageentity,
callback: dojoLang.hitch(this, function (obj) {
logger.debug('create', obj);
var ref = this.contextassociation.split("/");
if (obj.has(ref[0])) {
obj.set(ref[0], this._contextObj.getGuid());
}
obj.set(this.nameattr, file.name);
if (this.sizeattr) {
obj.set(this.sizeattr, file.size);
}
if (this.typeattr) {
obj.set(this.typeattr, file.type);
}
file.obj = obj;
callback();
}),
error: function () {
logger.error("failed createMendixFile");
callback();
}
});
},
/**
* Remove file directly via the client API.
* @param {File} file - file that needs to be removed.
Expand Down Expand Up @@ -384,9 +351,7 @@ define([
applyto: "selection",
guids: [obj.getGuid()]
},
store: {
caller: this.mxform
},
origin: this.mxform,
callback: dojoLang.hitch(this, function () {
logger.debug("callOnChange");
}),
Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="DropZone" version="4.0.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="DropZone" version="4.0.2" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="DropZone/DropZone.xml"/>
</widgetFiles>
Expand Down
Binary file modified test/DropZone6.mpr
Binary file not shown.
Binary file modified test/widgets/DropZone.mpk
Binary file not shown.

0 comments on commit 6ea5340

Please sign in to comment.