add floaty right total vlans number

This commit is contained in:
Oliver Gorwits
2012-01-12 21:35:41 +00:00
parent 659b984fec
commit e817220856
3 changed files with 6 additions and 6 deletions

View File

@@ -137,7 +137,7 @@ form .clearfix.success input {
/* draw little up arrow to the right of a label for collapsed list */
.cell-arrow-up {
float: left;
margin-top: 4px;
margin-top: 5px;
margin-right: 6px;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
@@ -147,7 +147,7 @@ form .clearfix.success input {
/* draw little down arrow to the right of a label for collapsed list */
.cell-arrow-down {
float: left;
margin-top: 4px;
margin-top: 5px;
margin-right: 6px;
border-left: 7px solid transparent;
border-right: 7px solid transparent;

View File

@@ -77,7 +77,7 @@
[% SET count = count + 1 %]
[% END %]
[% IF count > 10 %]
[% SET output = '<a href="#" class="nd_linkcell nd_collapse_vlans">'
[% SET output = '<div style="float: right">(' _ count _ ')</div><a href="#" class="nd_linkcell nd_collapse_vlans">'
_ 'Show VLANs</a><div class="nd_collapse_pre_hidden">' _ output %]
[% SET output = output _ '</div>' %]
[% END %]

View File

@@ -69,11 +69,11 @@
// enable collapser on any large vlan lists
$('.nd_collapse_vlans').collapser({
target: 'siblings',
target: 'next',
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>',
expandHtml: '<div class="cell-arrow-up"></div><div class="nd_collapser">Show VLANs</div>',
collapseHtml: '<div class="cell-arrow-down"></div><div class="nd_collapser">Hide VLANs</div>',
});
}
);