summaryrefslogtreecommitdiffstats
path: root/apps/admin/modules/domain/templates/_edit_header.php
blob: fed004a6913d7b84e99f61b771b9bb2ee4aa52d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php use_helper("Javascript") ?>

<?php
	use_javascript(sfConfig::get('sf_prototype_web_dir').'/js/prototype');

	echo javascript_tag("
	function updatePrefixFromDomainName(field) {
		v = $('domain_name').value;
		if(field.value!='') return true;
		field.value = v.substring(0, v.indexOf('.'));
		return true;
	}");
?>