/alias command fixes
authorDarren <darren@darrenwhitlen.com>
Fri, 27 Jun 2014 22:59:02 +0000 (23:59 +0100)
committerDarren <darren@darrenwhitlen.com>
Fri, 27 Jun 2014 22:59:02 +0000 (23:59 +0100)
client/src/misc/clientuicommands.js

index dd2adc827fe11809777642b401b164af373d5ee9..eff0dcf2f8b68b027ea9026ccdc3ac40265bc92d 100644 (file)
 
         // No parameters passed so list them
         if (!ev.params[1]) {
-            $.each(controlbox.preprocessor.aliases, function (name, rule) {
+            $.each(this.controlbox.preprocessor.aliases, function (name, rule) {
                 that.app.panels().server.addMsg(' ', styleText('list_aliases', {text: name + '   =>   ' + rule}));
             });
             return;
         if (ev.params[0] === 'del' || ev.params[0] === 'delete') {
             name = ev.params[1];
             if (name[0] !== '/') name = '/' + name;
-            delete controlbox.preprocessor.aliases[name];
+            delete this.controlbox.preprocessor.aliases[name];
             return;
         }
 
         if (name[0] !== '/') name = '/' + name;
 
         // Now actually add the alias
-        controlbox.preprocessor.aliases[name] = rule;
+        this.controlbox.preprocessor.aliases[name] = rule;
     };