Commit 3203f6c2 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 355172: [Selenium] <name="newqueryname" ...> needs an ID - Patch by Frédéric…

Bug 355172: [Selenium] <name="newqueryname" ...> needs an ID - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
parent 8158a81e
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
} }
function manage_old_lists() { function manage_old_lists() {
var old_lists = document.getElementById('oldqueryname'); var old_lists = document.getElementById('lob_oldqueryname');
// If there is no saved searches available, returns. // If there is no saved searches available, returns.
if (!old_lists) return; if (!old_lists) return;
var new_query = document.getElementById('newqueryname').value; var new_query = document.getElementById('lob_newqueryname').value;
if (new_query != "") { if (new_query != "") {
old_lists.disabled = true; old_lists.disabled = true;
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<input type="text" name="bug_ids" size="12" maxlength="80"> <input type="text" name="bug_ids" size="12" maxlength="80">
<span id="lob_direction">to</span> <span id="lob_direction">to</span>
[% IF lists_of_bugs.size %] [% IF lists_of_bugs.size %]
<select id="oldqueryname" name="oldqueryname"> <select id="lob_oldqueryname" name="oldqueryname">
[% FOREACH query = lists_of_bugs %] [% FOREACH query = lists_of_bugs %]
<option value="[% query FILTER html %]">[% query FILTER html %]</option> <option value="[% query FILTER html %]">[% query FILTER html %]</option>
[% END %] [% END %]
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
[% END %] [% END %]
<span id="lob_new_query_text"> <span id="lob_new_query_text">
[% " or to" IF lists_of_bugs.size %] the new saved search: [% " or to" IF lists_of_bugs.size %] the new saved search:
<input type="text" id="newqueryname" name="newqueryname" size="20" maxlength="64" <input type="text" id="lob_newqueryname" name="newqueryname" size="20" maxlength="64"
onkeyup="manage_old_lists();"> onkeyup="manage_old_lists();">
</span> </span>
<input type="submit" value="Commit" id="commit_list_of_bugs"> <input type="submit" value="Commit" id="commit_list_of_bugs">
......
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
value="[% urlquerypart FILTER html %][% "&order=$qorder" FILTER html IF order %]"> value="[% urlquerypart FILTER html %][% "&order=$qorder" FILTER html IF order %]">
<input type="hidden" name="cmdtype" value="doit"> <input type="hidden" name="cmdtype" value="doit">
<input type="hidden" name="remtype" value="asnamed"> <input type="hidden" name="remtype" value="asnamed">
<input type="text" name="newqueryname" size="20" <input type="text" id="save_newqueryname" name="newqueryname" size="20"
value="[% defaultsavename FILTER html %]"> value="[% defaultsavename FILTER html %]">
</form> </form>
</td> </td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment