[%# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[% PROCESS global/variables.none.tmpl %]
[% inline_style = BLOCK %]
strong.required:before {
content: "* ";
color: red;
}
#yui-history-iframe {
position: absolute;
top: 0;
left: 0;
width: 1px;
height: 1px;
visibility: hidden;
}
#advanced {
margin-top: 50px;
}
#advanced img {
vertical-align: middle;
}
#advanced a {
cursor: pointer;
}
[% END %]
[% inline_javascript = BLOCK %]
var Dom = YAHOO.util.Dom;
var Event = YAHOO.util.Event;
var History = YAHOO.util.History;
var mdn = {
_initial_state: 'initial',
_current_state: 'initial',
_current_type: 'Bug',
_required_fields: {
'Bug': {
'bug_actions': 'Please enter some text for "What did you do?"',
'bug_actual_results': 'Please enter some text for "What happened?"',
'bug_expected_results': 'Please enter some text for "What should have happened?"',
},
'Feature': {
'feature_problem_solving': 'Please enter some text for "What problems would this solve?"',
'feature_audience': 'Please enter some text for "Who would use this?"',
'feature_interface': 'Please enter some text for "What would users see?"',
'feature_process': 'Please enter some text for "What would users do? What would happen as a result?"',
},
'Change': {
'change_feature': 'Please enter some text for "What feature should be changed? Please provide the URL of the feature if possible"',
'change_problem_solving': 'Please enter some text for "What problems would this solve?"',
'change_audience': 'Please enter some text for "Who would use this?"',
'change_interface': 'Please enter some text for "What would users see?"',
'change_process': 'Please enter some text for "What would users do? What would happen as a result?"',
}
},
setState: function(state, request_type, no_set_history) {
if (state == 'detail') {
request_type = request_type || this._getRadioValueByClass('request_type');
request_type = request_type.toLowerCase();
if (request_type == 'bug') {
Dom.get('detail_header').innerHTML = '