Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
69be160f
Commit
69be160f
authored
Jul 20, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 560003: Hide the "Add Bug URLs" box behind an (add) link.
r=timello, a=mkanat
parent
1dc3eb46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
field.js
js/field.js
+6
-0
field.html.tmpl
template/en/default/bug/field.html.tmpl
+14
-5
No files found.
js/field.js
View file @
69be160f
...
...
@@ -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
)
{
...
...
template/en/default/bug/field.html.tmpl
View file @
69be160f
...
...
@@ -175,11 +175,20 @@
[% '</ul>' IF value.size %]
[% IF Param('use_see_also') %]
<label for="[% field.name FILTER html %]">
<strong>Add [% terms.Bug %] URLs:</strong>
</label><br>
<input type="text" id="[% field.name FILTER html %]" size="40"
class="text_input" name="[% field.name FILTER html %]">
<span id="container_showhide_[% field.name FILTER html %]"
class="bz_default_hidden">
<a href="#" id="showhide_[% field.name FILTER html %]">(add)</a>
</span>
<div id="container_[% field.name FILTER html %]">
<label for="[% field.name FILTER html %]">
<strong>Add [% terms.Bug %] URLs:</strong>
</label><br>
<input type="text" id="[% field.name FILTER html %]" size="40"
class="text_input" name="[% field.name FILTER html %]">
</div>
<script type="text/javascript">
setupEditLink('[% field.name FILTER js %]');
</script>
[% END %]
[% CASE constants.FIELD_TYPE_KEYWORDS %]
<div id="keyword_container">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment