From 31325e67cfb21de992e6779b53b8a72268280dcf Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 16 Sep 2012 12:31:40 +0100 Subject: [PATCH] QUOTE command --- client_backbone/dev/model_application.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client_backbone/dev/model_application.js b/client_backbone/dev/model_application.js index d78da3c..8a7a4c0 100644 --- a/client_backbone/dev/model_application.js +++ b/client_backbone/dev/model_application.js @@ -507,6 +507,9 @@ kiwi.model.Application = Backbone.Model.extend(new (function () { controlbox.on('command_notice', this.noticeCommand); + controlbox.on('command_quote', this.quoteCommand); + + controlbox.on('command_css', function (ev) { var queryString = '?reload=' + new Date().getTime(); $('link[rel="stylesheet"]').each(function () { @@ -632,6 +635,11 @@ kiwi.model.Application = Backbone.Model.extend(new (function () { kiwi.gateway.notice(destination, ev.params.join(' ')); }; + this.quoteCommand = function (ev) { + var raw = ev.params.join(' '); + kiwi.gateway.raw(raw); + }; + this.settingsCommand = function (ev) { var panel = new kiwi.model.Applet(); panel.load(new kiwi.applets.Settings()); -- 2.25.1