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

Add support for dateFormat on DateRangeInputComponent #43

Closed
flatrixnet opened this issue Oct 29, 2012 · 2 comments
Closed

Add support for dateFormat on DateRangeInputComponent #43

flatrixnet opened this issue Oct 29, 2012 · 2 comments

Comments

@flatrixnet
Copy link
Contributor

Like DateInputComponent, the developer should be able to define the date format on DateRangeInputComponent .

These are the changes that I made on the file:
CoreComponents.JS
//Line ~ ~1139

var format = (myself.dateFormat == undefined || myself.dateFormat == null)? 'yy-mm-dd' : myself.dateFormat;

$("#" + myself.htmlObject + " input").daterangepicker({
posX: offset.left + leftOffset,
posY: offset.top + topOffset,
earliestDate: earliestDate,
latestDate: latestDate,
//change begin
dateFormat: format ,
//change End
onOpen: function() {
changed = closed = false;
myself.startValue = null;
myself.endValue = null;
},

@pamval
Copy link
Contributor

pamval commented Oct 29, 2012

Hey, there. Thanks for the contribution.

Any chance you'll do a pull request with that change?
way faster to integrate the change into trunk

thanks!

@flatrixnet
Copy link
Contributor Author

Done

Thanks.

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

2 participants