diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-10-10 12:18:36 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-10-10 12:18:36 +0200 |
| commit | 4dd9a0529e79eccb7670a180c5d88fad144fa4c9 (patch) | |
| tree | a72f1a5057c7731cf1a5e37526b1cf0012692b84 /addons/base_import/static/src/css | |
| parent | f168998a49cbced240962f1aca86f2c89f665549 (diff) | |
[ADD] reload file button next to the file input, as webkit browsers and MSIE don't trigger change when a file input is re-set to thee same file
Using other events (e.g. 'click') is not kosher as the event is
triggered long before the file is picked, the alternative is to use
the File API and regularly check the file in the input to see if it's
been altered (by storing a crc) and re-pushing it if the hash is
different. Of course this has other issues (risks catching the file
mid-edition...)
A third alternative is, once a file has been uploaded, to clear and
re-insert the corresponding file input. This means the file input will
*always* be empty
bzr revid: xmo@openerp.com-20121010101836-qtqmcc5n5zblgmcp
Diffstat (limited to 'addons/base_import/static/src/css')
| -rw-r--r-- | addons/base_import/static/src/css/import.css | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/addons/base_import/static/src/css/import.css b/addons/base_import/static/src/css/import.css index 21e598ff707..3b4daf815e5 100644 --- a/addons/base_import/static/src/css/import.css +++ b/addons/base_import/static/src/css/import.css @@ -60,3 +60,22 @@ .oe_import_selector li { margin: 0; padding: 0; } + +.oe_import .oe_import_file_reload { + font-size: 1px; + letter-spacing: -1px; + color: transparent; + font-weight: normal; + position: relative; + padding: 0; + height: 19px; + width: 20px; +} +.oe_import .oe_import_file_reload:before { + font: 26px "mnmliconsRegular"; + content: "Q"; + color: #4C4C4C; + position: absolute; + top: -6px; + left: 2px; +} |
