Skip to content
Snippets Groups Projects

Bump version for tree.js to invalidate old cache

2 files
+ 6
5
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 3
3
@@ -9,8 +9,8 @@
var treeSettings = settings.taxonomy_manager.tree || [];
if (treeSettings instanceof Array) {
for (var i = 0; i < treeSettings.length; i++) {
$('#' + treeSettings[i].id).once('taxonomy-manager-tree').each(function () {
var tree = new Drupal.TaxonomyManagerFancyTree(treeSettings[i].id, treeSettings[i].name, treeSettings[i].source);
$(once('taxonomy-manager-tree', '#' + treeSettings[i].id)).each(function () {
new Drupal.TaxonomyManagerFancyTree(treeSettings[i].id, treeSettings[i].name, treeSettings[i].source);
});
}
}
@@ -21,7 +21,7 @@
return true;
});
// Handle click on autocomplete suggestion
$('.ui-autocomplete', context).once('input').on('click', function (e) {
$(once('input', '.ui-autocomplete'), once('input', context)).on('click', function (e) {
e.stopPropagation();
var tidMatch = $('input[name="search_terms"]').val().match(/\([0-9]*\)/g)
if (tidMatch.length) {
Loading