aboutsummaryrefslogtreecommitdiffstats
path: root/lib/offline-support.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-18 00:51:50 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-18 00:51:50 +0200
commitcb3869dce7f2cb179240ac6e0653cbfd94e4d0e8 (patch)
tree414a344f606971652336b83c19b53a51b6c50642 /lib/offline-support.js
parenta22c903e5e641fb6ed0efb03acae12fa90d86d04 (diff)
downloadbugzilla-triage-cb3869dce7f2cb179240ac6e0653cbfd94e4d0e8.tar.gz
Write HACKING document with coding guidelines and actually fix the
code to follow it.
Diffstat (limited to 'lib/offline-support.js')
-rw-r--r--lib/offline-support.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/offline-support.js b/lib/offline-support.js
index 4849bd3..e823069 100644
--- a/lib/offline-support.js
+++ b/lib/offline-support.js
@@ -24,7 +24,7 @@
* http://www.innovation.ch/java/HTTPClient/emulating_forms.html -
*/
RHBugzillaPage.prototype.serializeForm = function(form) {
- let serialForm = {
+ var serialForm = {
dataOut : "",
name : form.name,
method : form.method,
@@ -46,7 +46,7 @@ RHBugzillaPage.prototype.serializeForm = function(form) {
* @return String with the serialized control
*/
function serializeControl(element) {
- let val = element.value;
+ var val = element.value;
// console.log("val.toSource() = " + val.toSource());
/*
* on HTMLSelectElement we have an attribute 'type' of type DOMString,
@@ -81,12 +81,12 @@ RHBugzillaPage.prototype.serializeForm = function(form) {
//RHBugzillaPage.prototype.submitCallback = function(evt) {
// console.log("Submit Callback!");
// if (jetpack.__parent__.navigator.onLine) {
-// let serForm = this
+// var serForm = this
// .serializeForm(jetpack.tabs.focused.contentWindow.document.forms
// .namedItem("changeform"));
//// console.log("serForm:\n" + serForm.toSource());
// } else {
-// let serForm = this
+// var serForm = this
// .serializeForm(jetpack.tabs.focused.contentWindow.document.forms
// .namedItem("changeform"));
// myStorage.forms[this.bugNo] = serForm;
@@ -118,8 +118,8 @@ RHBugzillaPage.prototype.serializeForm = function(form) {
console.error("Sending bugs not implemented yet!");
return ""; // FIXME check other HTTP headers to be set
- let bugID = formData.bugNo;
- let req = new XMLHttpRequest();
+ var bugID = formData.bugNo;
+ var req = new XMLHttpRequest();
req.open("POST", formData.action, true);
// FIXME co očekávám za odpověď? req.overrideMimeType("text/xml");
// * Accept-Encoding
@@ -150,4 +150,4 @@ RHBugzillaPage.prototype.serializeForm = function(form) {
});
}
}
-*/ \ No newline at end of file
+*/