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

Element as "relative" parameter value #18

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

Element as "relative" parameter value #18

GoogleCodeExporter opened this issue Apr 24, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

It would be useful if element could be passed as a relative parameter. For 
example it would allow datepicker to be initialized before relative element 
have been added to dom.

Support for this could be archived by following code changes:


Change line 533 from:
this._id_datepicker     = 'datepicker-'+this._relative;

To:
this._id_datepicker     = 'datepicker-' + $(this._relative).id;


line 833 from:
this._relative,

to:
this._id_datepicker,


and line 859 from:
        ).replace(_self._relative+'-','').replace(/-/g, _self._df.separator);


to:
        ).replace(_self._id_datepicker+'-','').replace(/-/g, _self._df.separator);


Original issue reported on code.google.com by [email protected] on 20 May 2011 at 7:15

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