[Libreoffice-commits] .: bug/bug
Loic Dachary
loic at kemper.freedesktop.org
Sat Oct 8 02:28:16 PDT 2011
bug/bug/bug.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 38fe6a669b4fa44eb791aae87cc7776aa4b44e73
Author: Loic Dachary <loic at dachary.org>
Date: Sat Oct 8 11:27:35 2011 +0200
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018981.html
in a nutshell : deal with it, it won't go away
The original plan was to just have the filename. Unfortunately, it turns
out that if you do that, there are certain sites that break, because they
expect the path (and they expect a Windows path, no less). This is why
Opera and IE8 return a fake path -- not because HTML5 says to do it. In
fact I made HTML5 say it because they were doing it.
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 955d408..964af78 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -186,7 +186,10 @@
});
}
$("input[type='file']", element).change(function() {
- $("input[name='ignored']", element).val($(this).val());
+ // http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018981.html
+ // in a nutshell : deal with it, it won't go away
+ var path = $(this).val().replace("C:\\fakepath\\","")
+ $("input[name='ignored']", element).val(path);
});
$.bug.current_step('attach');
element.show();
More information about the Libreoffice-commits
mailing list