diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-01-13 00:22:47 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-01-13 00:22:47 +0100 |
commit | cfdf7463924d580f0e3a38eafd5cf3f555ffac11 (patch) | |
tree | fee44bd7edcc8af67f1172e205462f593ab77fbb /bugzillaBugTriage.js | |
parent | 778fe656aa829b634a869989307f40ae085be3d0 (diff) | |
download | bugzilla-triage-cfdf7463924d580f0e3a38eafd5cf3f555ffac11.tar.gz |
Actually I have overdone it with that-s.
Diffstat (limited to 'bugzillaBugTriage.js')
-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); } |