Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix Connexion class: commited ES6 in ES5 context.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 22, 2016
1 parent ab5a844 commit 718bca4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer_boot.js

Large diffs are not rendered by default.

Expand Up @@ -217,7 +217,9 @@ Class.create("Connexion", {
document.fire("ajaxplorer:server_answer", this);
},

uploadFile: function(file, fileParameterName, uploadUrl, onComplete, onError, onProgress, xhrSettings={}){
uploadFile: function(file, fileParameterName, uploadUrl, onComplete, onError, onProgress, xhrSettings){

if(xhrSettings === undefined) xhrSettings = {};

if(!onComplete) onComplete = function(){};
if(!onError) onError = function(){};
Expand All @@ -238,7 +240,10 @@ Class.create("Connexion", {

},

initializeXHRForUpload : function(url, onComplete, onError, onProgress, xhrSettings={}){
initializeXHRForUpload : function(url, onComplete, onError, onProgress, xhrSettings){

if(xhrSettings === undefined) xhrSettings = {};

var xhr = new XMLHttpRequest();
var upload = xhr.upload;
if(xhrSettings.withCredentials){
Expand Down

0 comments on commit 718bca4

Please sign in to comment.