Browse code

Affordance++ sélection tribune affichée

bruno.spyckerelle authored on 11/10/2016 15:41:57
Showing 2 changed files
... ...
@@ -292,6 +292,10 @@ body {
292 292
     float: right;
293 293
 }
294 294
 
295
+.tab:not(.active) a {
296
+    color: #666 !important;
297
+}
298
+
295 299
 .sidebar-nav li a {
296 300
     display: block;
297 301
     text-decoration: none;
... ...
@@ -372,7 +372,7 @@ function BoardTabAddTab (boardTab) {
372 372
     // Ajout de l'onglet
373 373
     board.loadConfig();
374 374
     board.updateCSS();
375
-    var tab = $('<li id="'+"tab-"+board.name+'" class="'+"tab tab-"+board.name+'"><a href="#"><span class="glyphicon glyphicon-check"></span> '+board.name+' </a></li>');
375
+    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>');
376 376
     tab.css('background-color', board.color);
377 377
     //TODO gérer ailleurs
378 378
     addEvent(tab[0], "click", function (e) { clickBoard(board.name, e); }, false);
... ...
@@ -491,7 +491,7 @@ function BoardTabDisplay(boardTab) {
491 491
     var css = getStyleClass("pinni-"+boardTab.board.name);
492 492
     if (css) {
493 493
         css.style.display = 'block';
494
-        $(boardTab.tab()).find('span.glyphicon').addClass('glyphicon-check').removeClass('glyphicon-ban-circle');
494
+        $(boardTab.tab()).addClass('active').find('span.glyphicon').addClass('glyphicon-check').removeClass('glyphicon-none');
495 495
     }
496 496
     boardTab.visible = true;
497 497
     //remove notif
... ...
@@ -504,7 +504,7 @@ function BoardTabHide(boardTab) {
504 504
     var css = getStyleClass("pinni-"+boardTab.board.name);
505 505
     if (css) {
506 506
         css.style.display = 'none';
507
-        $(boardTab.tab()).find('span.glyphicon').removeClass('glyphicon-check').addClass('glyphicon-ban-circle');
507
+        $(boardTab.tab()).removeClass('active').find('span.glyphicon').removeClass('glyphicon-check').addClass('glyphicon-none');
508 508
     }
509 509
     boardTab.visible = false;
510 510
 }