summaryrefslogtreecommitdiffstats
path: root/extensions/GuidedBugEntry/web/js/guided.js
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-03-20 18:05:06 +0100
committerByron Jones <bjones@mozilla.com>2013-03-20 18:05:06 +0100
commitce6b850ebeeff164be4a01aa30ee35b9d7301711 (patch)
tree43d5d92ce6f5d6450d96bd8bff4d066d434407d6 /extensions/GuidedBugEntry/web/js/guided.js
parent1b0a68274a27206725476f579d68ed4882606ada (diff)
downloadbugzilla-ce6b850ebeeff164be4a01aa30ee35b9d7301711.tar.gz
bugzilla-ce6b850ebeeff164be4a01aa30ee35b9d7301711.tar.xz
Bug 851818: Modernize the entry page for filing a bug by including, keeping, and removing products shown on the enter bug page
Diffstat (limited to 'extensions/GuidedBugEntry/web/js/guided.js')
-rw-r--r--extensions/GuidedBugEntry/web/js/guided.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/extensions/GuidedBugEntry/web/js/guided.js b/extensions/GuidedBugEntry/web/js/guided.js
index 8eaf6b3b5..98d637d60 100644
--- a/extensions/GuidedBugEntry/web/js/guided.js
+++ b/extensions/GuidedBugEntry/web/js/guided.js
@@ -306,7 +306,7 @@ var dupes = {
};
// DataSource can't understand a JSON-RPC error response, so
// we have to modify the result data if we get one.
- dataSource.doBeforeParseData =
+ dataSource.doBeforeParseData =
function(oRequest, oFullResponse, oCallback) {
if (oFullResponse.error) {
oFullResponse.result = {};
@@ -316,17 +316,17 @@ var dupes = {
}
return oFullResponse;
};
- dataSource.subscribe('dataErrorEvent',
+ dataSource.subscribe('dataErrorEvent',
function() {
dupes._currentSearchQuery = '';
}
);
this._dataTable = new YAHOO.widget.DataTable(
- 'dupes_list',
- this._dataTableColumns,
- dataSource,
- {
+ 'dupes_list',
+ this._dataTableColumns,
+ dataSource,
+ {
initialLoad: false,
MSG_EMPTY: 'No similar issues found.',
MSG_ERROR: 'An error occurred while searching for similar issues,' +
@@ -517,7 +517,7 @@ var dupes = {
dupes._dataTable.showTableMessage(
'Searching for similar issues...&nbsp;&nbsp;&nbsp;' +
- '<img src="extensions/GuidedBugEntry/web/images/throbber.gif"' +
+ '<img src="extensions/GuidedBugEntry/web/images/throbber.gif"' +
' width="16" height="11">',
YAHOO.widget.DataTable.CLASS_LOADING
);
@@ -535,12 +535,12 @@ var dupes = {
};
dupes._dataTable.getDataSource().sendRequest(
- YAHOO.lang.JSON.stringify(json_object),
+ YAHOO.lang.JSON.stringify(json_object),
{
success: dupes._onDupeResults,
failure: dupes._onDupeResults,
scope: dupes._dataTable,
- argument: dupes._dataTable.getState()
+ argument: dupes._dataTable.getState()
}
);
@@ -856,12 +856,12 @@ var bugForm = {
},
validate: function() {
-
+
// check mandatory fields
var missing = bugForm._mandatoryMissing();
if (missing.length) {
- var message = 'The following field' +
+ var message = 'The following field' +
(missing.length == 1 ? ' is' : 's are') + ' required:\n\n';
for (var i = 0, n = missing.length; i < n; i++ ) {
var id = missing[i];
@@ -888,9 +888,9 @@ var bugForm = {
if (!el.id)
el.id = help_id + '_parent';
el.panel = new YAHOO.widget.Panel(
- help_id,
- {
- width: "320px",
+ help_id,
+ {
+ width: "320px",
visible: false,
close: false,
context: [el.id, 'tl', 'tr', null, [5, 0]]