Commit e13ed06f authored by Ad Schellevis's avatar Ad Schellevis

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

parent 3604b422
...@@ -269,20 +269,16 @@ include("head.inc"); ...@@ -269,20 +269,16 @@ include("head.inc");
function toggleType() { function toggleType() {
if ($("#typeSelect").val() == 'urltable' || $("#typeSelect").val() == 'urltable_ports' ) { if ($("#typeSelect").val() == 'urltable' || $("#typeSelect").val() == 'urltable_ports' ) {
$("#updatefreq").removeClass('show');
$("#updatefreq").removeClass('hidden'); $("#updatefreq").removeClass('hidden');
$("#updatefreqHeader").removeClass('show');
$("#updatefreqHeader").removeClass('hidden'); $("#updatefreqHeader").removeClass('hidden');
$("#addNew").addClass('hidden'); $("#addNew").addClass('hidden');
$("#addNew").addClass('show');
$('#detailTable > tbody > tr:gt(0)').remove(); $('#detailTable > tbody > tr:gt(0)').remove();
$('.act-removerow').addClass('hidden');
} else { } else {
$("#updatefreq").addClass('hidden'); $("#updatefreq").addClass('hidden');
$("#updatefreq").addClass('show');
$("#updatefreqHeader").addClass('hidden'); $("#updatefreqHeader").addClass('hidden');
$("#updatefreqHeader").addClass('show');
$("#addNew").removeClass('show');
$("#addNew").removeClass('hidden'); $("#addNew").removeClass('hidden');
$('.act-removerow').removeClass('hidden');
} }
switch($("#typeSelect").val()) { switch($("#typeSelect").val()) {
case 'urltable': 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