aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/nav/global-navbar-view.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-01-26 16:54:05 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-01-26 17:10:12 +0100
commit24aca432a8313869f99124026befc6f6ea60615e (patch)
treeab5a171b2c39e6608fb60e6d9841ea62a4a15379 /server/sonar-web/src/main/js/nav/global-navbar-view.js
parent89252c95dc7bd91998a79ee23f3e5dcd21375b6f (diff)
downloadsonarqube-24aca432a8313869f99124026befc6f6ea60615e.tar.gz
sonarqube-24aca432a8313869f99124026befc6f6ea60615e.zip
SONAR-6041 apply feedback
Diffstat (limited to 'server/sonar-web/src/main/js/nav/global-navbar-view.js')
-rw-r--r--server/sonar-web/src/main/js/nav/global-navbar-view.js17
1 files changed, 3 insertions, 14 deletions
diff --git a/server/sonar-web/src/main/js/nav/global-navbar-view.js b/server/sonar-web/src/main/js/nav/global-navbar-view.js
index 7acb3ab2a9a..02c008d7592 100644
--- a/server/sonar-web/src/main/js/nav/global-navbar-view.js
+++ b/server/sonar-web/src/main/js/nav/global-navbar-view.js
@@ -21,7 +21,9 @@ define([
onRender: function () {
var that = this;
- this.$el.addClass('navbar-' + window.navbarSpace);
+ if (this.model.has('space')) {
+ this.$el.addClass('navbar-' + this.model.get('space'));
+ }
this.$el.addClass('navbar-fade');
setTimeout(function () {
that.$el.addClass('in');
@@ -34,19 +36,6 @@ define([
return false;
},
- onFavoriteClick: function () {
- var that = this,
- p = window.process.addBackgroundProcess(),
- url = baseUrl + '/favourites/toggle/' + window.navbarProjectId;
- return $.post(url).done(function () {
- that.isProjectFavorite = !that.isProjectFavorite;
- that.render();
- window.process.finishBackgroundProcess(p);
- }).fail(function () {
- window.process.failBackgroundProcess(p);
- });
- },
-
onSearchDropdownShow: function () {
var that = this;
this.searchRegion.show(new SearchView({