From: Max Kanat-Alexander Date: Tue, 20 Jul 2010 21:26:15 +0000 (-0700) Subject: Bug 560003: Hide the "Add Bug URLs" box behind an (add) link. X-Git-Tag: bugzilla-4.1.1~364 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69be160f92f1d20408c0e390610dffbd619f63cb;p=thirdparty%2Fbugzilla.git Bug 560003: Hide the "Add Bug URLs" box behind an (add) link. r=timello, a=mkanat --- diff --git a/js/field.js b/js/field.js index 2fff5931df..d2e800b908 100644 --- a/js/field.js +++ b/js/field.js @@ -203,6 +203,12 @@ function updateCalendarFromField(date_field) { } } +function setupEditLink(id) { + var link_container = 'container_showhide_' + id; + var input_container = 'container_' + id; + var link = 'showhide_' + id; + hideEditableField(link_container, input_container, link); +} /* Hide input fields and show the text with (edit) next to it */ function hideEditableField( container, input, action, field_id, original_value ) { diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 2417ce39b2..49cf718cc5 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -175,11 +175,20 @@ [% '' IF value.size %] [% IF Param('use_see_also') %] -
- + + (add) + +
+
+ +
+ [% END %] [% CASE constants.FIELD_TYPE_KEYWORDS %]