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

Better handling of timepicker (issue #24) #25

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

AlexNisnevich
Copy link

I implemented the two features I wanted in issue #24 . Feel free to do whatever you wish with this code.

@albertopq
Copy link
Owner

Thanks for your contribution!
First of all, sorry for the delay. I'm gonna review the code and I'll be happy to merge it after that :)
Thanks!

format.gsub(/#{DATE_FORMAT_REPLACEMENTS.keys.join("|")}/) { |match| DATE_FORMAT_REPLACEMENTS[match] }
end

def translate_time_format(format)
Copy link
Owner

Choose a reason for hiding this comment

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

I would pass a parameter instead having two methods doing the same

@albertopq
Copy link
Owner

OK done :)

Would be great to add some tests as well. If you don't want to fix these things, let me know and I'll Pull request to your fork.

Regards.

@AlexNisnevich
Copy link
Author

I've fixed the issues you mentioned and the tests all pass now.

However, I'm not sure what tests to write for the timepicker features. You are welcome to write tests yourself if you want to.

Best,
Alex

@donv
Copy link

donv commented Sep 2, 2012

Any chance this can be merged and released?

@donv
Copy link

donv commented Jun 12, 2013

Hi! Any news on this? Would you like some help merging this?

@albertopq
Copy link
Owner

I sent a Pull Request to @AlexNisnevich, rebasing the code and adding some tests. As soon as that is merged, I'll merge this Pull Request as well.
Thanks!

@AlexNisnevich
Copy link
Author

Thanks! Unfortunately, I'm on vacation now and unable to look at this, but I will merge the pull request next week.

@AlexNisnevich
Copy link
Author

Ok, I've merged your pull request.

@ghost
Copy link

ghost commented Dec 6, 2013

I've just installed the gem, and implemented it using the view helpers and now when I run rails s I'm getting the following: /usr/local/rvm/gems/ruby-2.0.0-p247/gems/jquery_datepicker-0.4/lib/app/helpers/form_helper.rb:33:in `<top (required)>': uninitialized constant ActionView::Helpers::InstanceTag (NameError)

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