$script(ev.params[0] + '?' + (new Date().getTime()));\r
});\r
\r
+ \r
+ controlbox.on('command_set', function (ev) {\r
+ if (!ev.params[0]) return;\r
+\r
+ var setting = ev.params[0],\r
+ value;\r
+\r
+ // Do we have a second param to set a value?\r
+ if (ev.params[1]) {\r
+ ev.params.shift();\r
+\r
+ value = ev.params.join(' ');\r
+ _kiwi.global.settings.set(setting, value);\r
+ }\r
+\r
+ // Read the value to the user\r
+ _kiwi.app.panels.active.addMsg('', setting + ' = ' + _kiwi.global.settings.get(setting));\r
+ });\r
+\r
+\r
+ controlbox.on('command_save', function (ev) {\r
+ _kiwi.global.settings.save();\r
+ _kiwi.app.panels.active.addMsg('', 'Settings have been saved');\r
+ });\r
+\r
+\r
controlbox.on('command_alias', function (ev) {\r
var name, rule;\r
\r