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

Option to disable onClick handler of input element #7

Open
GoogleCodeExporter opened this issue Apr 24, 2015 · 0 comments
Open

Option to disable onClick handler of input element #7

GoogleCodeExporter opened this issue Apr 24, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

When an externalControl is set, then I like to disable the onClick handler
of the relative control.

The patch changes

/* finally declare the event listener on input field */
Event.observe(this._relative,
          'click', this.click.bindAsEventListener(this), false);

to

/* finally declare the event listener on input field */
if ( Object.isUndefined(h_p["externalControl"]) || (
!Object.isUndefined(h_p["externalControl"]) &&
Object.isUndefined(h_p["noActivateOnClick"]) ) )
        Event.observe(this._relative,
          'click', this.click.bindAsEventListener(this), false);

The onClick event listener is only set, when no externalControl is set or
an external control is set and noActivateOnClick is not set.

Original issue reported on code.google.com by hannes.d...@gmail.com on 19 Jul 2009 at 12:20

Attachments:

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

No branches or pull requests

1 participant