Permalink
Browse files

finished CardDAV port - ready for first run and testing - and improve…

…d browser plugin with forms
  • Loading branch information...
1 parent 376811f commit 6b3b2dc8e7626179a5fd2d5d9499db6c96d312c3 @mikedeboer committed Feb 1, 2013
View
View
@@ -238,7 +238,8 @@ jsDAV_Handler.STATUS_MAP = {
};
}
- this.dispatchEvent("beforeMethod", method, this.getRequestUri(), function(stop) {
+ var uri = this.getRequestUri();
+ this.dispatchEvent("beforeMethod", method, uri, function(stop) {
if (stop === true)
return;
if (stop)
@@ -248,7 +249,7 @@ jsDAV_Handler.STATUS_MAP = {
self["http" + method.charAt(0) + method.toLowerCase().substr(1)]();
}
else {
- self.dispatchEvent("unknownMethod", method, function(stop) {
+ self.dispatchEvent("unknownMethod", method, uri, function(stop) {
if (stop === true)
return;
// Unsupported method
@@ -1224,7 +1225,7 @@ jsDAV_Handler.STATUS_MAP = {
var form = new Formidable.IncomingForm();
form.uploadDir = this.server.tmpDir;
- form.addListener("file", function(field, file) {
+ form.on("file", function(field, file) {
// in the case of a streamed write, we can move the file to its
// correct position right away:
if (stream) {
@@ -1241,7 +1242,7 @@ jsDAV_Handler.STATUS_MAP = {
}
});
- form.addListener("error", cbreqbody);
+ form.on("error", cbreqbody);
form.parse(req);
}
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong. Retry.

0 comments on commit 6b3b2dc

Please sign in to comment.