Project

General

Profile

« Previous | Next » 

Revision 96c18fe4

Added by Stephen Beaver almost 10 years ago

Addresses #5159 by removing hide/show/disable/enable functions to included file

View differences:

src/usr/local/www/services_ntpd.php
505 505
//<![CDATA[
506 506
events.push(function(){
507 507

  
508
	// Hides the <div> in which the specified input element lives so that the input, its label and help text are hidden
509
	function hideInput(id, hide) {
510
		if(hide)
511
			$('#' + id).parent().parent('div').addClass('hidden');
512
		else
513
			$('#' + id).parent().parent('div').removeClass('hidden');
514
	}
515

  
516
	// Hides the <div> in which the specified checkbox lives so that the checkbox, its label and help text are hidden
517
	function hideCheckbox(id, hide) {
518
		if(hide)
519
			$('#' + id).parent().parent().parent('div').addClass('hidden');
520
		else
521
			$('#' + id).parent().parent().parent('div').removeClass('hidden');
522
	}
523

  
524 508
	function setMasks() {
525 509
		// Find all ipaddress masks and make dynamic based on address family of input
526 510
		$('span.pfIpMask + select').each(function (idx, select){

Also available in: Unified diff