[IMP] website: designer can push space after comma on input of the modal to customize theme

This commit is contained in:
Christophe Matthieu
2015-02-12 15:06:26 +01:00
parent e30dda9828
commit 126282f810
@@ -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;