Implement flags indication for country-select widget:

- Migrate AB country selector to select-country tags
- Migrate Country selector in preferences to use select-country tags
This commit is contained in:
Hadi Nategh
2018-09-18 10:46:36 +02:00
parent 1eb64136ce
commit 6e94639b0a
13 changed files with 1211 additions and 33 deletions

View File

@@ -250,7 +250,7 @@
classes.push(option.classes);
}
style = option.style.cssText !== "" ? " style=\"" + option.style + "\"" : "";
return "<li class=\"" + (classes.join(' ')) + "\"" + style + " data-option-array-index=\"" + option.array_index + "\">" + option.search_text + "</li>";
return "<li class=\"" + (classes.join(' ')) + "\"" + style + " data-option-array-index=\"" + option.array_index + "\"><span class=\"img\"></span>" + option.search_text + "</li>";
};
AbstractChosen.prototype.result_add_group = function(group) {