Author: michiel
Date: 2010-02-16 11:37:55 +0100 (Tue, 16 Feb 2010)
New Revision: 41070
Modified:
mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/upload/MMUpload.js.jsp
Log:
details only
Modified:
mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/upload/MMUpload.js.jsp
===================================================================
---
mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/upload/MMUpload.js.jsp
2010-02-16 09:41:59 UTC (rev 41069)
+++
mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/upload/MMUpload.js.jsp
2010-02-16 10:37:55 UTC (rev 41070)
@@ -1,19 +1,21 @@
-// -*- mode: javascript; -*-
/**
* Implicitely and temporary checks/uploads binaries.
* Based on ajax-fileupload
* (jquery-form is too hard to use, because it requires an entire
* form to be submitted).
+ * Useage:
+ * Create an instance, and call it when the upload must happen.
+ * - in the mmValidate event if you use validation, or otherwise in the the
change event
*/
-
+/*
<%...@page contentType="text/javascript; charset=UTF-8"
%><%...@taglib uri="http://www.mmbase.org/mmbase-taglib-2.0" prefix="mm"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><fmt:bundle basename="org.mmbase.resources.resources">
<mm:content type="text/javascript" expires="0">
+*/
-
function MMUploader() {
// Currently running uploads
this.uploading = {};
@@ -26,18 +28,18 @@
}
MMUploader.prototype.status = function(message, fadeout) {
- var el = this.statusElement;
- if (el != null) {
- if (el.originalTextContent == null) el.originalTextContent =
el.textContent;
- $(el).fadeTo("fast", 1);
- $(el).empty();
- $(el).append(message);
- if (fadeout) {
- var p = el;
- $(el).fadeTo(4000, 0.1, function() {
- $(p).empty(); $(p).append(p.originalTextContent); }
- );
- }
+ var el = this.statusElement;
+ if (el != null) {
+ if (el.originalTextContent == null) el.originalTextContent =
el.textContent;
+ $(el).fadeTo("fast", 1);
+ $(el).empty();
+ $(el).append(message);
+ if (fadeout) {
+ var p = el;
+ $(el).fadeTo(4000, 0.1, function() {
+ $(p).empty(); $(p).append(p.originalTextContent);
}
+ );
+ }
}
}
@@ -162,7 +164,8 @@
}
}
);
- return false;
+ return;
}
+/*
</mm:content></fmt:bundle>
-
+*/
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs