projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b95f5f
)
Hiding new connection/startup app button if in a restricted server mode
author
Darren
<darren@darrenwhitlen.com>
Sat, 29 Mar 2014 15:44:13 +0000
(15:44 +0000)
committer
Darren
<darren@darrenwhitlen.com>
Sat, 29 Mar 2014 15:44:13 +0000
(15:44 +0000)
client/src/views/apptoolbar.js
patch
|
blob
|
blame
|
history
diff --git
a/client/src/views/apptoolbar.js
b/client/src/views/apptoolbar.js
index 5d4b87b8b96337009008d0ec9c5eb3546e607c1d..b249b1a7f229008c6a2dc7300a6ad380ab716387 100644
(file)
--- a/
client/src/views/apptoolbar.js
+++ b/
client/src/views/apptoolbar.js
@@
-5,6
+5,10
@@
_kiwi.view.AppToolbar = Backbone.View.extend({
},
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) {