From 1330854b9e593612cd7623d68b0c18124ebc39b7 Mon Sep 17 00:00:00 2001 From: Samuel Chen Date: Mon, 8 Aug 2016 16:01:50 +0800 Subject: [PATCH] update demo/websocket for updating JQuery to 3.1.0 --- demos/websocket/static/chat.js | 4 ++-- demos/websocket/templates/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/websocket/static/chat.js b/demos/websocket/static/chat.js index b4bb18a9..4e7ec049 100644 --- a/demos/websocket/static/chat.js +++ b/demos/websocket/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/websocket/templates/index.html b/demos/websocket/templates/index.html index cbf2b23d..91a45363 100644 --- a/demos/websocket/templates/index.html +++ b/demos/websocket/templates/index.html @@ -27,7 +27,7 @@ - +