[TYPO3-core] RFC: #9562: Feature: onChange has no effect

Dan Osipov dosipov at phillyburbs.com
Thu Apr 16 18:59:52 CEST 2009


Attached patch fixes the issue described.

Dan Osipov
Calkins Media
http://danosipov.com/blog/

Dan Osipov wrote:
> Jeff,
> 
> Interestingly enough, the patch doesn't work with wec_sermon, and it 
> looks like it could be because of the RTE. When changing types, the 
> following JS error is thrown:
> 
> uncaught exception: [object Object]
> _createRange()(null)htmlarea...b37bac.js (line 148)
> getParentElement()(null, undefined)htmlarea...b37bac.js (line 275)
> updateValue()("BlockStyle")BlockSty...79ae45.js (line 271)
> buildCssArray()(Object config=Object _htmlArea=div.htmlarea, 
> "BlockStyle")BlockSty...79ae45.js (line 466)
> generate()(Object config=Object _htmlArea=div.htmlarea, 
> "BlockStyle")BlockSty...79ae45.js (line 257)
> onUpdateToolbar()()BlockSty...79ae45.js (line 225)
> updateToolbar()(undefined)htmlarea...e539b7.js (line 1547)
> generatePlugins()("data[tx_wecsermons_resources][NEW49bd746a580e0][description]")htmlarea...e539b7.js 
> (line 1160)
> htmlarea_f13d42dfb1987be539b7.js()()htmlarea...e539b7.js (line 1119)
> [Break on this error] return sel.getRangeAt(0);
> 
> I'll try to investigate.
> 
> Dan Osipov
> Calkins Media
> http://danosipov.com/blog/
> 
> Jeff Segars wrote:
>> Hey Dan,
>>
>> Dan Osipov wrote:
>>> I'll check the test extension.
>>> About wec_sermons - did you modify TCA and add "requestUpdate"? If 
>>> so, can you post the code that I can check?
>>
>> I was working with the tx_wecsermons_resources table.  This table has 
>> a "type" field so the refresh should trigger even without an explicit 
>> "requestUpdate". I did try adding the "requestUpdate" just to be sure 
>> though and it made no difference.
>>
>> Thanks,
>> Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9562_v3.patch
Type: text/x-diff
Size: 6825 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090416/890d06c7/attachment.patch 


More information about the TYPO3-team-core mailing list