From e11d9bbbb2a25f7bfd0b3264f51e76fdb347b03f Mon Sep 17 00:00:00 2001 From: Alexandre Beloin Date: Thu, 15 Jan 2015 13:34:45 -0500 Subject: [PATCH] Fix jQuery live not working with 1.9+: Subtiles, newshow and recommandedshows --- gui/slick/js/configSubtitles.js | 6 +++--- gui/slick/js/newShow.js | 2 +- gui/slick/js/recommendedShows.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/slick/js/configSubtitles.js b/gui/slick/js/configSubtitles.js index 034f204a..91ec8747 100644 --- a/gui/slick/js/configSubtitles.js +++ b/gui/slick/js/configSubtitles.js @@ -47,10 +47,10 @@ $(document).ready(function(){ $('#editAService').change(function(){ $(this).showHideServices(); }); - - $('.service_enabler').live('click', function(){ + + $('.service_enabler').on('click', function(){ $(this).refreshServiceList(); - }); + }); // initialization stuff diff --git a/gui/slick/js/newShow.js b/gui/slick/js/newShow.js index 6018f360..3daea1f7 100644 --- a/gui/slick/js/newShow.js +++ b/gui/slick/js/newShow.js @@ -216,7 +216,7 @@ $(document).ready(function () { } $('#rootDirText').change(updateSampleText); - $('#whichSeries').live('change', updateSampleText); + $('#searchResults').on('change', '#whichSeries', updateSampleText); $('#nameToSearch').keyup(function (event) { if (event.keyCode == 13) { diff --git a/gui/slick/js/recommendedShows.js b/gui/slick/js/recommendedShows.js index f2b9bd1f..caec10d9 100644 --- a/gui/slick/js/recommendedShows.js +++ b/gui/slick/js/recommendedShows.js @@ -139,6 +139,6 @@ $(document).ready(function () { } $('#rootDirText').change(updateSampleText); - $('#whichSeries').live('change', updateSampleText); + $('#searchResults').on('change', '#whichSeries', updateSampleText); });