Skip to content

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

Open
@nightowl77

Description

@nightowl77

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions