Frank Vèssia Posted February 13, 2011 Share Posted February 13, 2011 I've noticed a strange behaviour when moving a page with children in another position. After this operation if a click on the page PW shows me the children twice, duplicated, click again and PW shows me the correct list until I refresh the page, then all return good. I got two screenshots, my countries page shows me countries two times. It's not a big problem but i think it's good to solve this little issue. Link to comment Share on other sites More sharing options...
ryan Posted February 13, 2011 Share Posted February 13, 2011 Thanks for your report. What browser, version and platform did you notice this behavior in? I want to make sure I test in the right environment. Link to comment Share on other sites More sharing options...
Frank Vèssia Posted February 13, 2011 Author Share Posted February 13, 2011 i'm on mac osx with latest safari 5.0.3 Link to comment Share on other sites More sharing options...
Adam Kiss Posted February 13, 2011 Share Posted February 13, 2011 Ryan, if it helps you, the bug is located somewhere in the expanding/collapsing JS methods. Most of this happens, when you click really fast, so there is something like setting 'expanded' class (or whatever method you use) after AJAX response – or anything else, there is a little time between clicking and response time, where PW doesn't know you have asked to expand children, so makes another AJAX call, thus having two of them. (I suspect ) Edit: in case it's not obvious, the first 3 children is old HTML code from the moved child (the same three children below) Link to comment Share on other sites More sharing options...
Frank Vèssia Posted February 13, 2011 Author Share Posted February 13, 2011 @adamkiss i don't think because i waited more between every click. :-\ Link to comment Share on other sites More sharing options...
Adam Kiss Posted February 13, 2011 Share Posted February 13, 2011 Then it's another problem with that JS code. There is a lot (okay, more than one) bugs with that pagelist JS code, so this might me another one Link to comment Share on other sites More sharing options...
ryan Posted February 13, 2011 Share Posted February 13, 2011 So far I can't seem to duplicate it. Tested in Safari 5.0.2 on OS X. Maybe I'm not catching it quick enough? I move the page with children, but it opens back up before I can even click on it again. Maybe I need to insert some javascript induced delays in there in order to reproduce. Or can you tell me if I'm doing it wrong? Link to comment Share on other sites More sharing options...
Jim Yost Posted February 14, 2011 Share Posted February 14, 2011 I have the same issue. See my Youtube Video: WinXP, Firefox 3.6.13 Link to comment Share on other sites More sharing options...
Frank Vèssia Posted February 15, 2011 Author Share Posted February 15, 2011 in the video it appends only one time and for few moments, than the list return good. P.S.: nobody noticed that when you move a page into another position the root page change the number of children displayed in (n)...you can see it in the video... ;D Link to comment Share on other sites More sharing options...
Adam Kiss Posted February 15, 2011 Share Posted February 15, 2011 Sevarf: ... https://github.com/ryancramerdesign/ProcessWire/issues#issue/12 Link to comment Share on other sites More sharing options...
ryan Posted February 15, 2011 Share Posted February 15, 2011 The total count issue is a known issue (per Adam's report). It's a minor enough one that I thought I'd wait till I was working in the ProcessPageList.js with something else, and take care of it at the same time. Jim, thanks for posting this video. This was helpful to see. I have no doubt there is a problem, but I'm running into trouble reproducing it here. I duplicated the exact steps from the video as best as I could (multiple times), but have yet to get a doubled list like shown in the screenshots/video. What am I missing? I've tried in Safari 5, Chrome 9 and Firefox 3.6. Is there some extra click that I need to do at the right time? Is this behavior exhibited every time you move a page with children, or is it only in some instances? I want to fix it today, but I just need to find a way to duplicate it. Thanks, Ryan Link to comment Share on other sites More sharing options...
Frank Vèssia Posted February 15, 2011 Author Share Posted February 15, 2011 @ryan the issue is only in some instances... i also cannot reproduceit , it appends only 3 times to me. Link to comment Share on other sites More sharing options...
ryan Posted February 21, 2011 Share Posted February 21, 2011 Sevarf2, Jimyost, Adamkiss, I still haven't been able to reproduce this issue, but I did just make an update that may prevent it from happening in the first place. I modified ProcessPageList so that it doesn't "reopen" a page after moving it. This was done to improve the UI for when you have to move lots of pages. But after making the change, it occurred to me that this might actually eliminate the problem that was brought up in this thread. The only problem is that I can't test it. If any of you have been able to duplicate this issue consistently, and wouldn't mind testing the latest commit when convenient, I'd appreciate it if you could let me know if it has solved the issue or not. Thanks, Ryan Link to comment Share on other sites More sharing options...
Jim Yost Posted February 22, 2011 Share Posted February 22, 2011 Ryan, Still no luck. I also have a hard time moving a child to a higher branch level. This has always been there, I just haven't mentioned it before. Another video. Firefox 3.6.13 (WinXP) -Jim Link to comment Share on other sites More sharing options...
ryan Posted February 23, 2011 Share Posted February 23, 2011 Jim, Thanks for posting that screencast. I'm aware of this particular issue, just haven't figured out how to solve it. I usually just move the item below the list, close the list, then move it above. I think this only happens in that specific location (right under the homepage), so it's probably an easy fix, I just need to track it down. This is one of those issues I run into every now and then, but forget about it. Now that I've got a video, I can't forget about it. So hope to have this one fixed soon. Do you have any more details on how to duplicate the other issue that initiated this thread? I still cannot duplicate it, and might need a more literal explanation of exactly what it takes to duplicate it. If for some reason I still can't duplicate it by April, you'll have to show me when we're up there for Hanna's birthday, and hopefully we can fix it then. Thanks, Ryan Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now