QUOTE command
authorDarren <darren@darrenwhitlen.com>
Sun, 16 Sep 2012 11:31:40 +0000 (12:31 +0100)
committerDarren <darren@darrenwhitlen.com>
Sun, 16 Sep 2012 11:31:40 +0000 (12:31 +0100)
client_backbone/dev/model_application.js

index d78da3cc79821685cab702102056f799c15c7dd7..8a7a4c0111d333e5545b000c87163b41fb38d6f6 100644 (file)
@@ -507,6 +507,9 @@ kiwi.model.Application = Backbone.Model.extend(new (function () {
 \r
         controlbox.on('command_notice', this.noticeCommand);\r
 \r
+        controlbox.on('command_quote', this.quoteCommand);\r
+\r
+\r
         controlbox.on('command_css', function (ev) {\r
             var queryString = '?reload=' + new Date().getTime();\r
             $('link[rel="stylesheet"]').each(function () {\r
@@ -632,6 +635,11 @@ kiwi.model.Application = Backbone.Model.extend(new (function () {
         kiwi.gateway.notice(destination, ev.params.join(' '));\r
     };\r
 \r
+    this.quoteCommand = function (ev) {\r
+        var raw = ev.params.join(' ');\r
+        kiwi.gateway.raw(raw);\r
+    };\r
+\r
     this.settingsCommand = function (ev) {\r
         var panel = new kiwi.model.Applet();\r
         panel.load(new kiwi.applets.Settings());\r