diff options
-rw-r--r-- | bugzillaBugTriage.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 359285c..eb1668b 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -534,16 +534,16 @@ BzPage.prototype.serializeForm = function (form) { return serialForm; }; -BzPage.prototype.submitCallback = function(evt,that) { +BzPage.prototype.submitCallback = function(evt) { console.log("Submit Callback!"); if (jetpack.__parent__.navigator.onLine) { - var serForm = that.serializeForm(jetpack.tabs.focused. + var serForm = this.serializeForm(jetpack.tabs.focused. contentWindow.document.forms.namedItem("changeform")); console.log("serForm:\n"+serForm.toSource()); } else { - var serForm = that.serializeForm(jetpack.tabs.focused. + var serForm = this.serializeForm(jetpack.tabs.focused. contentWindow.document.forms.namedItem("changeform")); - myStorage.forms[that.bugNo] = serForm; + myStorage.forms[this.bugNo] = serForm; evt.stopPropagation(); evt.preventDefault(); } @@ -1816,7 +1816,7 @@ function BzPage(doc) { // offline-capable submit this.dok.forms.namedItem("changeform"). addEventListener('submit', function (evt) { - that.submitCallback(evt, that)}, + that.submitCallback.call(that, evt)}, false); } |