mirror of https://gitee.com/bigwinds/arangodb
extra class for last checkbox divider
This commit is contained in:
parent
42b9405404
commit
2070615631
|
@ -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;
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in New Issue