summaryrefslogtreecommitdiffstats
path: root/apps/admin/modules/domain/templates/_edit_header.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/admin/modules/domain/templates/_edit_header.php')
-rw-r--r--apps/admin/modules/domain/templates/_edit_header.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/admin/modules/domain/templates/_edit_header.php b/apps/admin/modules/domain/templates/_edit_header.php
new file mode 100644
index 0000000..fed004a
--- /dev/null
+++ b/apps/admin/modules/domain/templates/_edit_header.php
@@ -0,0 +1,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;
+ }");
+?>