diff --git a/Netdisco/views/ajax/device/ports.tt b/Netdisco/views/ajax/device/ports.tt
index 7e76e2a5..e41a7ade 100644
--- a/Netdisco/views/ajax/device/ports.tt
+++ b/Netdisco/views/ajax/device/ports.tt
@@ -73,7 +73,7 @@
[% END %]
[% IF row.tagged_vlans_count > 10 %] [%# FIXME make this a settable variable %]
[% SET output = '
(' _ row.tagged_vlans_count
- _ ')
'
+ _ ')'
_ 'Show VLANs' _ output %]
[% SET output = output _ '
' %]
[% END %]
diff --git a/Netdisco/views/js/device.js b/Netdisco/views/js/device.js
index 5efd0a07..7dfdcc59 100644
--- a/Netdisco/views/js/device.js
+++ b/Netdisco/views/js/device.js
@@ -9,12 +9,12 @@
event.preventDefault(); // prevent jump to top of page
$(this).siblings('.nd_collapsing').toggle('fast');
$(this).siblings('.cell-arrow-up').toggleClass('cell-arrow-down cell-arrow-up');
- $(this).text('Hide VLANs');
+ $(this).html('Hide VLANs');
}, function() {
event.preventDefault(); // prevent jump to top of page
$(this).siblings('.nd_collapsing').toggle('fast');
$(this).siblings('.cell-arrow-down').toggleClass('cell-arrow-down cell-arrow-up');
- $(this).text('Show VLANs');
+ $(this).html('Show VLANs');
});
}