From b026113a34d8daa5628240715685c519d77ebd94 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 6 May 2012 22:46:41 +0200 Subject: [PATCH] Disabled web socket stuff. --- app/assets/javascripts/app/index.js.coffee | 27 +++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/app/assets/javascripts/app/index.js.coffee b/app/assets/javascripts/app/index.js.coffee index c4be8d9f9..e1f0292a9 100644 --- a/app/assets/javascripts/app/index.js.coffee +++ b/app/assets/javascripts/app/index.js.coffee @@ -61,6 +61,7 @@ class App.Ajax processData: false headers: {'X-Requested-With': 'XMLHttpRequest'} cache: false + async: true ajax: (params, defaults) -> $.ajax($.extend({}, @defaults, defaults, params)) @@ -203,26 +204,26 @@ class App.Run extends Spine.Controller window.Session['UISeletion'] = @getSelected() + '' ) - @ws = new WebSocket("ws://localhost:3001/"); +# @ws = new WebSocket("ws://localhost:3001/"); # Set event handlers. - @ws.onopen = -> - console.log("onopen") +# @ws.onopen = -> +# console.log("onopen") - @ws.onmessage = (e) -> +# @ws.onmessage = (e) -> # e.data contains received string. - console.log("onmessage: " + e.data) - eval e.data +# console.log("onmessage: " + e.data) +# eval e.data - Spine.bind 'ws:send', (data) => - @log 'ws:send', data - @ws.send(data); +# Spine.bind 'ws:send', (data) => +# @log 'ws:send', data +# @ws.send(data); - @ws.onclose = -> - console.log("onclose") +# @ws.onclose = -> +# console.log("onclose") - @ws.onerror = -> - console.log("onerror") +# @ws.onerror = -> +# console.log("onerror") getSelected: -> text = '';