Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The onclick function for $(input[type=checkbox], input[type=radio], select) goes crazy after a few clicks #64

Open
nightowl77 opened this issue Feb 22, 2015 · 0 comments

Comments

@nightowl77
Copy link

Hi Guys

I wish I had the ability to fix this for you, but unforunately I'm not that proficient with Javascript.

Problem: It seems like line 82 in index.phtml (which is responisible for dealing with clicks on tags) is causing the click function to be called multiple times. This is fine if the user only select one tag, but it gets worse when he selects tags multiple times.

If added "alert('tag onclick')" to like 85. If a user already selected 4 tags, a 5th click will cause the onclick function to be called 5 times for the single click from the user. This will cause a lot of load on your server as the /filter route is called multiple times for every 1 click from the user. It gets progressively worse the more times a user clicks tags.

You can also confirm this by looking at the "Network" tab in Crome/Firefox's development window.

Just thought I'd give you the heads up

Thank you for the great Phalcon framework!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant