|
|
@@ -255,6 +255,13 @@ class Route_Przypomnij extends RouteBase {
|
|
|
.fltr-hide_BRAK tr.date-BRAK {display:none;}
|
|
|
|
|
|
.nobr {white-space:nowrap;}
|
|
|
+
|
|
|
+.btn-default { background-color:#fff; }
|
|
|
+.btn-default:hover { background-color:#fafafa; }
|
|
|
+.bejm_inactive_btn-default { background-color:#e8e8e8; color:#888; }
|
|
|
+.bejm_inactive_btn-default:hover { background-color:#e4ede4; color:#666;}
|
|
|
+.bejm_active { background-color:#e5ffe6/*#d8ffda-mocniej zielony*/; color:#222; /* border-top: 1px solid #00e62b; border-bottom: 1px solid #00e62b; */ }
|
|
|
+.bejm_active:hover { background-color:#dcf4dd; color:#666; /* border-top: 1px solid #00e62b; border-bottom: 1px solid #00e62b; */ }
|
|
|
</style>
|
|
|
<div id="przypomnij-widget"></div>
|
|
|
<script>
|
|
|
@@ -576,14 +583,14 @@ class Route_Przypomnij extends RouteBase {
|
|
|
btnNode = $('<button class="btn btn-default" title="Filtr"><i class="glyphicon glyphicon-' + icon + '"></i></button>');
|
|
|
btnNode.appendTo(groupNode);
|
|
|
$.each(fltrItems, function(itemName, isActive) {
|
|
|
- btnNode = $('<button class="btn btn-default"></button>');
|
|
|
+ btnNode = $('<button class="btn btn-default bejm_inactive_btn-default"></button>');
|
|
|
btnNode.data('type', fltrType);
|
|
|
btnNode.data('name', itemName);
|
|
|
if (self.options.filters[fltrType]['itemTitles'][itemName]) {
|
|
|
btnNode.attr('title', self.options.filters[fltrType]['itemTitles'][itemName]);
|
|
|
}
|
|
|
if (true === self._filters[fltrType][itemName]) {
|
|
|
- btnNode.addClass('active');
|
|
|
+ btnNode.addClass('bejm_active');
|
|
|
}
|
|
|
btnNode.text(self.options.filters[fltrType]['labels'][itemName]);
|
|
|
//btnNode.html(self.options.filters[fltrType]['labels'][itemName] + ' <span class="badge" style="background-color: #aaa;">3</span>');// TODO: TEST badge
|
|
|
@@ -684,10 +691,10 @@ class Route_Przypomnij extends RouteBase {
|
|
|
}
|
|
|
var n = self._filterNodes[fltrType][itemName];
|
|
|
if (isActive) {
|
|
|
- n.addClass('active');
|
|
|
+ n.addClass('bejm_active');
|
|
|
self._tableNode.removeClass('fltr-hide_' + itemName);
|
|
|
} else {
|
|
|
- n.removeClass('active');
|
|
|
+ n.removeClass('bejm_active');
|
|
|
self._tableNode.addClass('fltr-hide_' + itemName);
|
|
|
}
|
|
|
});
|