Skip to content

Commit

Permalink
Affordance++ sélection tribune affichée
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoSpy committed Oct 11, 2016
1 parent 2085db4 commit aa722e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ body {
float: right;
}

.tab:not(.active) a {
color: #666 !important;
}

.sidebar-nav li a {
display: block;
text-decoration: none;
Expand Down
6 changes: 3 additions & 3 deletions js/board.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ function BoardTabAddTab (boardTab) {
// Ajout de l'onglet
board.loadConfig();
board.updateCSS();
var tab = $('<li id="'+"tab-"+board.name+'" class="'+"tab tab-"+board.name+'"><a href="#"><span class="glyphicon glyphicon-check"></span> '+board.name+' </a></li>');
var tab = $('<li id="'+"tab-"+board.name+'" class="'+"tab tab-"+board.name+' active"><a href="#"><span class="glyphicon glyphicon-check"></span> '+board.name+' </a></li>');
tab.css('background-color', board.color);
//TODO gérer ailleurs
addEvent(tab[0], "click", function (e) { clickBoard(board.name, e); }, false);
Expand Down Expand Up @@ -491,7 +491,7 @@ function BoardTabDisplay(boardTab) {
var css = getStyleClass("pinni-"+boardTab.board.name);
if (css) {
css.style.display = 'block';
$(boardTab.tab()).find('span.glyphicon').addClass('glyphicon-check').removeClass('glyphicon-ban-circle');
$(boardTab.tab()).addClass('active').find('span.glyphicon').addClass('glyphicon-check').removeClass('glyphicon-none');
}
boardTab.visible = true;
//remove notif
Expand All @@ -504,7 +504,7 @@ function BoardTabHide(boardTab) {
var css = getStyleClass("pinni-"+boardTab.board.name);
if (css) {
css.style.display = 'none';
$(boardTab.tab()).find('span.glyphicon').removeClass('glyphicon-check').addClass('glyphicon-ban-circle');
$(boardTab.tab()).removeClass('active').find('span.glyphicon').removeClass('glyphicon-check').addClass('glyphicon-none');
}
boardTab.visible = false;
}
Expand Down

0 comments on commit aa722e4

Please sign in to comment.