summaryrefslogtreecommitdiffstats
path: root/extensions/GuidedBugEntry/web/js/guided.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/GuidedBugEntry/web/js/guided.js')
-rw-r--r--extensions/GuidedBugEntry/web/js/guided.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/extensions/GuidedBugEntry/web/js/guided.js b/extensions/GuidedBugEntry/web/js/guided.js
index d7fe2c75b..0ff438782 100644
--- a/extensions/GuidedBugEntry/web/js/guided.js
+++ b/extensions/GuidedBugEntry/web/js/guided.js
@@ -14,8 +14,6 @@ var History = YAHOO.util.History;
var guided = {
_currentStep: '',
_defaultStep: 'product',
- detectedPlatform: '',
- detectedOpSys: '',
currentUser: '',
openStates: [],
updateStep: true,
@@ -198,15 +196,6 @@ var product = {
Dom.get('groups').value = products['_default'].secgroup;
}
- // use the correct platform & op_sys
- if (products[productName] && products[productName].detectPlatform) {
- Dom.get('rep_platform').value = guided.detectedPlatform;
- Dom.get('op_sys').value = guided.detectedOpSys;
- } else {
- Dom.get('rep_platform').value = 'All';
- Dom.get('op_sys').value = 'All';
- }
-
// show support message
if (products[productName] && products[productName].support) {
Dom.get("product_support_message").innerHTML = products[productName].support;
@@ -834,6 +823,10 @@ var bugForm = {
elVersions.value = '';
}
bugForm.onVersionChange(elVersions.value);
+
+ // set default hw/os
+ Dom.get('rep_platform').value = product.details.default_platform;
+ Dom.get('op_sys').value = product.details.default_op_sys;
},
onComponentChange: function(componentName) {