Fixing taxonomy tags / autocomplete script to use "on" instead of "live", which was depracated since jQuery 1.7 and removed as of 1.9.

--HG--
branch : 1.x
This commit is contained in:
Sipke Schoorstra
2013-04-14 11:11:49 +02:00
parent 4d4c6af662
commit 883b5478e9

View File

@@ -117,7 +117,7 @@
$(".no-terms", $wrapper).hide();
};
$("fieldset.taxonomy-wrapper .expando input[data-term]:enabled").live("change", function (e) {
$("fieldset.taxonomy-wrapper .expando").on("change", "input[data-term]:enabled", function(e) {
var $checkbox = $(this);
var term = $checkbox.data("term");
var $wrapper = $checkbox.parents("fieldset.taxonomy-wrapper:first");