[zeam.form.silva][Sylvain Viollon] Remove speed-fix.

[email protected]
Newsgroups gmane.comp.web.zope.silva.cvs
Message-ID <[email protected]>
author:    Sylvain Viollon
date:      Mon Jul 29 13:11:40 2013 +0200
revision:  412:592304981490 in zeam.form.silva
branch:    2.4
details:   https://hg.infrae.com/zeam.form.silva?cmd=changeset;node=592304981490
modified:  src/zeam/form/silva/widgets/static/upload.js
added:     
removed:   
log:       Remove speed-fix.


diffstat:

 src/zeam/form/silva/widgets/static/upload.js |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (14 lines):

diff -r 56c3eb289e39 -r 592304981490 src/zeam/form/silva/widgets/static/upload.js
--- a/src/zeam/form/silva/widgets/static/upload.js	Mon Jul 29 11:09:57 2013 +0200
+++ b/src/zeam/form/silva/widgets/static/upload.js	Mon Jul 29 13:11:40 2013 +0200
@@ -21,9 +21,7 @@
         var iframe = $iframe.get(0),
             iframe_window = iframe.contentWindow,
             iframe_document = iframe_window.document;
-        if (iframe_document.readyState == "complete") {
-            handler();
-        } else if (iframe_window.addEventListener) {
+        if (iframe_window.addEventListener) {
             iframe_window.addEventListener("load", handler, false);
             iframe_window.addEventListener("error", handler, false);
         } else {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.