Merge remote branch 'origin/development' into text_themes
[KiwiIRC.git] / client / src / views / apptoolbar.js
1 _kiwi.view.AppToolbar = Backbone.View.extend({
2 events: {
3 'click .settings': 'clickSettings',
4 'click .startup': 'clickStartup'
5 },
6
7 initialize: function () {
8 // Remove the new connection/startup link if the server has disabled server changing
9 if (_kiwi.app.server_settings.connection && !_kiwi.app.server_settings.connection.allow_change) {
10 this.$('.startup').css('display', 'none');
11 }
12 },
13
14 clickSettings: function (event) {
15 event.preventDefault();
16 _kiwi.app.controlbox.processInput('/settings');
17 },
18
19 clickStartup: function (event) {
20 event.preventDefault();
21 _kiwi.app.startup_applet.view.show();
22 },
23 });