diff options
Diffstat (limited to 'lib/offline-support.js')
-rw-r--r-- | lib/offline-support.js | 14 |
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 +*/ |