Pager problems

amelfe - October 7, 2009 - 14:21
Project:Avatar Selection
Version:5.x-2.9
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

I just updated the avatar selection module to the 2.9 version and found some problems with the pager : loading never ends.
I was getting this message in my debug output "script stack space quota is exhausted" caused by jquery.js.
After a some research, I found out what was causing the problem : the browser.
In avatar_selection_pager.js, the variable 'data' passed to jquery was too big, since the page contained too much data.

I've attached a patch that solves the problem, but since I don't know much of javascript, I didn't find a better way to do it.
Feel free to improve it.

There was also a problem in Opera about the opacity. It's in the patch too.

AttachmentSize
pager_loading_problem.patch1.24 KB

#1

stella - October 25, 2009 - 23:17
Status:active» postponed (maintainer needs more info)

I've committed the opacity fix. However I'd like to understand the pager problem more first. I presume the pager problem occurred on the user edit/registration form, rather than on the avatar selection administration pages. How much data do you have on the user edit page? And how many fieldsets? How many avatars are you showing per page?

#2

amelfe - November 2, 2009 - 12:18

It occured only in the user edit form if I remember well. There are about 10 filedsets and 6 avatars per page.
Data length is around 475409 characters (data.length).

Hope It helps.

 
 

Drupal is a registered trademark of Dries Buytaert.