diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-02-12 15:05:26 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-02-12 15:06:26 +0100 |
| commit | 126282f8105985db8901b30ff491b251fe4e627c (patch) | |
| tree | 5aaf0e0c2e53d833ba4c6c69a9190d26efc0e41c /addons/website/static/src/js/website.theme.js | |
| parent | e30dda982816d35200e242c38e8ec381c39c676b (diff) | |
[IMP] website: designer can push space after comma on input of the modal to customize theme
Diffstat (limited to 'addons/website/static/src/js/website.theme.js')
| -rw-r--r-- | addons/website/static/src/js/website.theme.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website.theme.js b/addons/website/static/src/js/website.theme.js index 0183311b0d9..6d498fc4133 100644 --- a/addons/website/static/src/js/website.theme.js +++ b/addons/website/static/src/js/website.theme.js @@ -94,13 +94,13 @@ }); }, get_inputs: function (string) { - return this.$inputs.filter('#'+string.split(",").join(", #")); + return this.$inputs.filter('#'+string.split(/\s*,\s*/).join(", #")); }, get_xml_ids: function ($inputs) { var xml_ids = []; $inputs.each(function () { if ($(this).data('xmlid') && $(this).data('xmlid').length) { - xml_ids = xml_ids.concat($(this).data('xmlid').split(",")); + xml_ids = xml_ids.concat($(this).data('xmlid').split(/\s*,\s*/)); } }); return xml_ids; |
