From e6dd6bab84a4c59e4bbd19243ebc31ad1cdcf9e6 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 28 Aug 2012 00:37:45 +0100 Subject: [PATCH] make hyperlink over all of vlans cell --- Netdisco/views/ajax/device/ports.tt | 2 +- Netdisco/views/js/device.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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'); }); }