Skip to content

Commit

Permalink
Moved the upload class to the ajax dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
feuzeu committed Jan 11, 2025
1 parent c488934 commit 0bcab6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ajax/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
oRequest.status = (oRequest.statusMessages) ? config.status.update : config.status.dontUpdate;
oRequest.cursor = (oRequest.waitCursor) ? config.cursor.update : config.cursor.dontUpdate;

// Look for upload parameter
// Set upload data in the request.
upload.initialize(oRequest);

// The request is submitted only if there is no pending requests in the outgoing queue.
Expand Down Expand Up @@ -186,4 +186,4 @@
oRequest.submit && self.submit(oRequest);
};
})(jaxon.ajax.request, jaxon.config, jaxon.ajax.parameters, jaxon.ajax.response,
jaxon.ajax.callback, jaxon.utils.upload, jaxon.utils.queue);
jaxon.ajax.callback, jaxon.ajax.upload, jaxon.utils.queue);
4 changes: 2 additions & 2 deletions src/utils/upload.js → src/ajax/upload.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Class: jaxon.utils.upload
* Class: jaxon.ajax.upload
*/

(function(self, dom, console) {
Expand Down Expand Up @@ -56,4 +56,4 @@
oRequest.postHeaders['content-type'] = oRequest.contentType;
}
}
})(jaxon.utils.upload, jaxon.utils.dom, console);
})(jaxon.ajax.upload, jaxon.utils.dom, console);
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var jaxon = {
parameters: {},
request: {},
response: {},
upload: {},
},

cmd: {
Expand All @@ -56,7 +57,6 @@ var jaxon = {
queue: {},
types: {},
string: {},
upload: {},
},

dom: {},
Expand Down

0 comments on commit 0bcab6b

Please sign in to comment.