$script(ev.params[0] + '?' + (new Date().getTime()));\r
});\r
\r
+ controlbox.on('command_applet', this.appletCommand);\r
controlbox.on('command_settings', this.settingsCommand);\r
};\r
\r
panel.view.show();\r
};\r
\r
+ this.appletCommand = function (ev) {\r
+ if (!ev.params[0]) return;\r
+\r
+ var panel = new kiwi.model.Applet();\r
+\r
+ if (ev.params[1]) {\r
+ // Url and name given\r
+ panel.load(ev.params[0], ev.params[1]);\r
+ } else {\r
+ // Load a pre-loaded applet\r
+ if (kiwi.applets[ev.params[0]]) {\r
+ panel.load(new kiwi.applets[ev.params[0]]);\r
+ } else {\r
+ kiwi.app.panels.server.addMsg('', 'Applet "' + ev.params[0] + '" does not exist');\r
+ return;\r
+ }\r
+ }\r
+ \r
+ kiwi.app.panels.add(panel);\r
+ panel.view.show();\r
+ };\r
+\r
\r
\r
\r