0244d1da61be97bd4337c29d747f5283cecda935
2 var View
= Backbone
.View
.extend({
4 'click .save': 'saveSettings'
7 initialize: function (options
) {
8 this.$el
= $($('#tmpl_applet_settings').html());
11 saveSettings: function () {
12 var theme
= $('.theme', this.$el
).val(),
13 containers
= $('#panels > .panel_container');
15 // Clear any current theme
16 containers
.removeClass(function (i
, css
) {
17 return (css
.match (/\btheme_\S+/g) || []).join(' ');
20 if (theme
) containers
.addClass('theme_' + theme
);
26 kiwi
.applets
.nickserv
= Backbone
.Model
.extend({
27 initialize: function () {
28 this.set('title', 'Nickserv Login');
29 //this.view = new View();
31 kiwi
.global
.control
.on('command_login', this.loginCommand
, this);
34 loginCommand: function (event
) {
35 console
.log('waheeyy');