portcontrol should use new icons after changing state

This commit is contained in:
Oliver Gorwits
2013-09-05 23:59:03 +01:00
parent 02b09fc52e
commit ba0c8d0b89

View File

@@ -30,14 +30,14 @@ function port_control (e) {
// update all the screen furniture for port up/down control
if ($.trim(td.data('action')) == 'down') {
td.prev('td').html('<span class="label">S</span>');
td.prev('td').html('<i class="icon-remove"></i>');
$(e).toggleClass('icon-hand-down');
$(e).toggleClass('icon-hand-up');
$(e).data('tooltip').options.title = 'Click to Enable';
td.data('action', 'up');
}
else if ($.trim(td.data('action')) == 'up') {
td.prev('td').html('<span class="label"><i class="icon-refresh"></i></span>');
td.prev('td').html('<i class="icon-refresh"></i>');
$(e).toggleClass('icon-hand-up');
$(e).toggleClass('icon-hand-down');
$(e).data('tooltip').options.title = 'Click to Disable';