bug/bug/bug.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 38fe6a669b4fa44eb791aae87cc7776aa4b44e73 Author: Loic Dachary <l...@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(); _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits