Commit 75fe8f50 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) small cleanup in alias edit, hide minus when not applicable

(cherry picked from commit e13ed06f)
parent 8372d2d8
......@@ -269,20 +269,16 @@ include("head.inc");
function toggleType() {
if ($("#typeSelect").val() == 'urltable' || $("#typeSelect").val() == 'urltable_ports' ) {
$("#updatefreq").removeClass('show');
$("#updatefreq").removeClass('hidden');
$("#updatefreqHeader").removeClass('show');
$("#updatefreqHeader").removeClass('hidden');
$("#addNew").addClass('hidden');
$("#addNew").addClass('show');
$('#detailTable > tbody > tr:gt(0)').remove();
$('.act-removerow').addClass('hidden');
} else {
$("#updatefreq").addClass('hidden');
$("#updatefreq").addClass('show');
$("#updatefreqHeader").addClass('hidden');
$("#updatefreqHeader").addClass('show');
$("#addNew").removeClass('show');
$("#addNew").removeClass('hidden');
$('.act-removerow').removeClass('hidden');
}
switch($("#typeSelect").val()) {
case 'urltable':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment