зеркало из https://github.com/mozilla/pjs.git
b=363658
- fix runaway JS from double product setting
This commit is contained in:
Родитель
447dd0b8bb
Коммит
0530db5cad
|
@ -1,14 +1,3 @@
|
|||
function populateProductSelect(selectID) {
|
||||
if (products) {
|
||||
var selectBox = document.getElementById(selectID)
|
||||
selectBox.options.length = 0;
|
||||
selectBox.options[0] = new Option('-Product-','');
|
||||
for (var i=0; i<products.length; i++) {
|
||||
selectBox.options[i+1] = new Option(products[i].name,products[i].product_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function changeProduct(productSelectBox) {
|
||||
if (productSelectBox.selectedIndex &&
|
||||
productSelectBox.options[productSelectBox.selectedIndex].value != '') {
|
||||
|
|
|
@ -32,11 +32,8 @@
|
|||
|
||||
[% title="View Testcase" %]
|
||||
|
||||
|
||||
[% PROCESS global/selects.none.tmpl %]
|
||||
|
||||
[% includeselects=1 %]
|
||||
[% INCLUDE global/html_header.tmpl js_files=['js/Help.js','js/SelectBoxes.js','js/FormValidation.js','js/FormPersist.js','js/ViewTestcase.js'] %]
|
||||
[% INCLUDE global/html_header.tmpl js_files=['js/FormValidation.js','js/MochiKit/MochiKit.js','js/json.js','js/Help.js','js/SelectBoxes.js','js/FormPersist.js','js/ViewTestcase.js'] %]
|
||||
[% INCLUDE global/litmus_header.tmpl %]
|
||||
|
||||
<script type="text/javascript">
|
||||
|
@ -45,7 +42,6 @@ var testgroups=[% testgroups_js %];
|
|||
var subgroups=[% subgroups_js %];
|
||||
|
||||
function init() {
|
||||
populateProductSelect("product_id");
|
||||
[% IF searchType == "by_category" %]
|
||||
productBox = document.getElementById('product_id');
|
||||
testgroupBox = document.getElementById('testgroup_id');
|
||||
|
|
Загрузка…
Ссылка в новой задаче