implement vlan hide/show when list is larger than 10

This commit is contained in:
Oliver Gorwits
2012-01-12 21:19:32 +00:00
parent 9dea705a1b
commit 659b984fec
3 changed files with 47 additions and 9 deletions

View File

@@ -66,6 +66,15 @@
}
// looks good, update the bookmark for this search
$(mark).attr('href', '/device?' + query);
// enable collapser on any large vlan lists
$('.nd_collapse_vlans').collapser({
target: 'siblings',
effect: 'slide',
changeText: true,
expandHtml: '<div class="nd_collapser">Show VLANs<div class="cell-arrow-up"></div></div>',
collapseHtml: '<div class="nd_collapser">Hide VLANs<div class="cell-arrow-down"></div></div>',
});
}
);
}