| Page 1 of 1 | [ 4 posts ] |
|
I have the YUI tree with inline editing supporting and reload tree button to re-create one. When I first load the page I can to edit my nodes by double click but if I click on "Reload tree" button I lose that feature. What's wrong?
http://jsfiddle.net/eric777/LKwCS/ |
|
As it turns out, there are several things wrong. Here is your fiddle updated.
http://jsfiddle.net/LKwCS/1/ The editor was detached from the document body when the tree was redrawn and the editor data held a reference to a node long gone. Unfortunately, there will be no further versions of YUI2, this is a clumsy patch, the real fix would require a little correction here and there. BTW: You don't want to subscribe to the double click over and over on each redraw, since the tree is still there and the original subscription still valid. |
|
Thank you for the help.
Do you know why that solution doesn't work in IE at all? |
|
This is a better patch:
https://gist.github.com/2601422 Replace the patch I suggested in my previous post since it is contained within this. |
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group