Place to store the code and config used for the next-Iterations live event.
https://iterations.space/live/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
715 B
23 lines
715 B
_kiwi.view.AppToolbar = Backbone.View.extend({
|
|
events: {
|
|
'click .settings': 'clickSettings',
|
|
'click .startup': 'clickStartup'
|
|
},
|
|
|
|
initialize: function () {
|
|
// Remove the new connection/startup link if the server has disabled server changing
|
|
if (_kiwi.app.server_settings.connection && !_kiwi.app.server_settings.connection.allow_change) {
|
|
this.$('.startup').css('display', 'none');
|
|
}
|
|
},
|
|
|
|
clickSettings: function (event) {
|
|
event.preventDefault();
|
|
_kiwi.app.controlbox.processInput('/settings');
|
|
},
|
|
|
|
clickStartup: function (event) {
|
|
event.preventDefault();
|
|
_kiwi.app.startup_applet.view.show();
|
|
}
|
|
});
|
|
|