From ad0992ee24db5abab7d6839b472e2fe65f931fa9 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Sun, 25 Nov 2012 21:21:37 +0100 Subject: [PATCH] Don't use deprecated function --- assets/js/cmd.coffee | 2 +- assets/js/cmd.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/cmd.coffee b/assets/js/cmd.coffee index 0b0174a..1e44b46 100644 --- a/assets/js/cmd.coffee +++ b/assets/js/cmd.coffee @@ -1,3 +1,3 @@ $(document).ready -> - $('#select-command').bind 'change', -> + $('#select-command').on 'change', -> $('.command').text $(this).val() diff --git a/assets/js/cmd.min.js b/assets/js/cmd.min.js index 6a05133..6fbda24 100644 --- a/assets/js/cmd.min.js +++ b/assets/js/cmd.min.js @@ -1 +1 @@ -(function(){$(document).ready(function(){return $("#select-command").bind("change",function(){return $(".command").text($(this).val())})})}).call(this); \ No newline at end of file +(function(){$(document).ready(function(){return $("#select-command").on("change",function(){return $(".command").text($(this).val())})})}).call(this); \ No newline at end of file