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

Extend date range config options - start/end date, submit-on-change #40

Merged
merged 2 commits into from
Jan 6, 2016

Conversation

RKushnir
Copy link
Contributor

@RKushnir RKushnir commented Jan 5, 2016

Pass config options for initial start/end date.
Support submit-on-change — submit the enclosing form when the selected date range changes.

Required for https://github.com/ad2games/nevaly/pull/95

@dziemba
Copy link
Contributor

dziemba commented Jan 5, 2016

Can you add tests for this?

@RKushnir RKushnir force-pushed the date-range-config branch 2 times, most recently from 3b6430f to 2d78a8b Compare January 6, 2016 09:46
@RKushnir
Copy link
Contributor Author

RKushnir commented Jan 6, 2016

@dziemba done

@dziemba
Copy link
Contributor

dziemba commented Jan 6, 2016

🍄

@@ -1,3 +1,9 @@
#= require jquery
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the includes here? Aren't they in the global ui_c coffee file already?

https://github.com/ad2games/ui_components/blob/master/app/assets/javascripts/ui_components.js.erb

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove them for now.

It seems there's a code migration in progress here, so new tests use a layout which only loads the component's js code(without jquery etc). Thus the need to require the dependencies(e.g. https://github.com/ad2games/ui_components/blob/115e6840ad043b75315e88c8dfbf0e696c00fdcc/app/cells/select/select.coffee)
But my attempt to go the "new way" failed because of the html-escaping bug in the slim.

RKushnir added a commit that referenced this pull request Jan 6, 2016
Extend date range config options - start/end date, submit-on-change
@RKushnir RKushnir merged commit fe1bc30 into master Jan 6, 2016
@RKushnir RKushnir deleted the date-range-config branch January 6, 2016 11:00
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

Successfully merging this pull request may close these issues.

3 participants