From 21227662051a03e65440603f5dea9439d05d87e7 Mon Sep 17 00:00:00 2001 From: BuhtigithuB Date: Fri, 7 Feb 2014 10:58:57 -0500 Subject: [PATCH] Replace jQuery .bind() by .on() --- modules/plugin_lazy_options_widget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugin_lazy_options_widget.py b/modules/plugin_lazy_options_widget.py index e3d07f6..da681e8 100644 --- a/modules/plugin_lazy_options_widget.py +++ b/modules/plugin_lazy_options_widget.py @@ -80,7 +80,7 @@ def __call__(self, field, value, **attributes): script_el = SCRIPT(""" jQuery(document).ready(function() { - jQuery("body").bind("%(on_key)s", function(e, val) { + jQuery("body").on("%(on_key)s", function(e, val) { jQuery("#%(disp_el_id)s").html("%(default)s"); jQuery("#%(hidden_el_id)s").val(""); var query = {} @@ -91,7 +91,7 @@ def __call__(self, field, value, **attributes): }}); }); - jQuery("body").bind("%(off_key)s", function(e) { + jQuery("body").on("%(off_key)s", function(e) { jQuery("#%(disp_el_id)s").html("%(default)s"); jQuery("#%(hidden_el_id)s").val(""); });