in eventblock.js, blockUpdater.prototype.update uses in incorrect variable to set the element html, it uses "result" when it should use "xmlHttp.responseText", attached is a patch to fix that. It was done by another programmer at my company and i reviewed it, so it should be good to merge in. The patch is done against the latest 5.x-1.x-dev.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | eventblock.patch | 5.86 KB | snufkin |
| #1 | eventblock.patch | 0 bytes | snufkin |
| event-block.patch | 742 bytes | smccabe |
Comments
Comment #1
snufkin commentedI can confirm that this functionality is indeed broken, the patch fixes it. Rerolled vs CVS because it was rolled the other way around.
The opening patch fixes the issue by
a) referencing the self object, so variables stored in the instance are accessable, thus abort is working
b) from the ajax response "result" variable contains the returned HTML, not xmlHttp (thats actually the return status as far I understood).
Also removed the windows newlines.
Comment #2
snufkin commentedComment #3
gerhard killesreiter commentedthanks, applied!
Comment #4
smccabe commentedAwesome, and thanks for fixing up the patch snufkin.