From: Michael V. DePalatis Date: Fri, 12 Aug 2016 14:37:20 +0000 (+0200) Subject: Update chat demo for jQuery 3.1 X-Git-Tag: v4.5.0~79^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fb8426543a9f4135ee9fef9bc10d26641a4d867;p=thirdparty%2Ftornado.git Update chat demo for jQuery 3.1 --- diff --git a/demos/chat/static/chat.js b/demos/chat/static/chat.js index 0054c710d..240b4aea6 100644 --- a/demos/chat/static/chat.js +++ b/demos/chat/static/chat.js @@ -16,11 +16,11 @@ $(document).ready(function() { if (!window.console) window.console = {}; if (!window.console.log) window.console.log = function() {}; - $("#messageform").live("submit", function() { + $("#messageform").on("submit", function() { newMessage($(this)); return false; }); - $("#messageform").live("keypress", function(e) { + $("#messageform").on("keypress", function(e) { if (e.keyCode == 13) { newMessage($(this)); return false; diff --git a/demos/chat/templates/index.html b/demos/chat/templates/index.html index 8916c3502..2e5852dbf 100644 --- a/demos/chat/templates/index.html +++ b/demos/chat/templates/index.html @@ -27,7 +27,7 @@ - +