1
0
Fork 0

extra class for last checkbox divider

This commit is contained in:
Heiko Kernbach 2013-05-22 12:15:30 +02:00
parent 42b9405404
commit 2070615631
2 changed files with 12 additions and 4 deletions

View File

@ -12,6 +12,10 @@
} }
*/ */
.dbNotVisible {
opacity: 0 !important;
}
#dashboardHeader .btn-group { #dashboardHeader .btn-group {
margin-left: 10px; margin-left: 10px;
margin-top: 6px; margin-top: 6px;

View File

@ -70,15 +70,19 @@ var dashboardView = Backbone.View.extend({
"seconds" "seconds"
); );
var counter = 1;
$.each(this.options.description.models[0].attributes.groups, function () { $.each(this.options.description.models[0].attributes.groups, function () {
console.log(self.options.description.models[0].attributes.groups.length);
$('.thumbnails').append( $('.thumbnails').append(
'<ul class="statGroups" id="' + this.group + '">' + '<ul class="statGroups" id="' + this.group + '">' +
'<h4 class="statsHeader">' + this.name + '</h4>' + '<h4 class="statsHeader">' + this.name + '</h4>' +
'</ul>'); '</ul>');
$('#menuGroups').append( $('#menuGroups').append('<li class="nav-header">' + this.name + '</li>');
'<li class="nav-header">' + this.name + '</li>' + $('#menuGroups').append('<li class="divider" id="' + this.group + 'Divider"></li>');
'<li class="divider" id="' + this.group + 'Divider"></li>' if (self.options.description.models[0].attributes.groups.length === counter) {
); $('#'+this.group+'Divider').addClass('dbNotVisible');
}
counter++;
}); });
$.each(this.options.description.models[0].attributes.figures, function () { $.each(this.options.description.models[0].attributes.figures, function () {