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
Feature Request: Date picker #116
Comments
Totally agreed. |
Any help or thoughts towards getting this started? |
What software is that from? |
I created this with http://wordpress.org/plugins/meta-box/screenshots/ It uses http://jqueryui.com/datepicker/ |
@valendesigns Derek i mentioned the problem before, I have the datepicker type created that adds a calendar but when I enqueue the jquery-ui.css smoothness file, the menu gets some background that looks bad. See the image and let me know if we can find a solution using a scope maybe! |
It seems odd that WordPress doesn't have a built in Date Picker. We could just include the CSS that is required for the Date Picker and not the entire jQuery UI? |
True, I was searching for a native WordPress Datepicker but there is none. If I can manage to add this one before the weekend can u push it with next patch 2.2.1 ? |
I've already started working on it, I'll get it to play nice with the rest of the UI. As for including it in 2.2.1, sorry but that's a hotfix branch and this is a new feature. I'm keeping to a stricter branching model so this will be in 2.3.0 out next month. |
Well I guess you should take point on it since you've gotten that far with the design. Looks good to me! Finish integrating the timepicker and send over a pull request on the |
OK, I need couple of hours and its done. |
@omid-khd Please do a pull on |
@omid-khd check the image bellow, is this how it should look like properly in RTL! |
@jetonr the important thing in rtl languages that have more priority is text therefore it isn't necessary to show date/time picker on right.just negative value of text indent become positive for hiding labels. |
@jetonr I've updated the CSS and the next & previous buttons should now be fixed. @omid-khd If you're not yet familiar with git and what a pull is please download the |
Seems there's a style issue in firefox with the calendar being pushed over a pixel. Looking for a fix now. Chrome looks perfect, as always. |
OK, firefox should now be fixed. @omid-khd you are happy then with the rtl support of the date picker? |
only in IE11,IE10,IE9: @valendesigns when i click today in the datepicker the calendar closes and opens again. |
@jetonr That sounds annoying. However, I don't have IE11 to test and fix it. Also, it would be a bug with the jQuery Date Picker itself and is something jQuery would need to fix. Does it insert the date into the input field? As long as it's doing what it's meant to do then it's something we'll have to live with unless you can find a solution. |
@valendesigns yes ie9 does insert the date properly, but have to click outside the calendar to close it. |
@jetonr I F'ing hate IE. How about the date time picker? |
@valendesigns Same doesn't show. I hate that ie8 stil has a market share from 6-8% in 2014. We can redirect them to http://theie8countdown.com/ lol |
Unfortunately IE is a piece of shit regardless of the version. I have yet to be impressed by any of the releases of IE and even though they make nice commercials demonstrating how awesome their browser is, it always falls short in the real world. I guess first thing to check is if the date picker on the jQuery site works in IE and if it has the same behavior as we're experiencing. |
Already did that. Checked em both and works on jQuery site and the datetimepicker they both work even with ie7 |
SCRIPT5009: 'OT_UI' is undefined |
Okay then, that's weird. It's probably something to do with the way the JS is written. Unfortunately, you're going to have to fix it. I can help in Skype if you want? |
You responded at the same time. |
Ok let me know what can i do or skype:jetonr |
This feature is now considered completed - please comment if you find something wrong. Also, we are dropping support for IE8 at this time. Thank you @jetonr for contributing your code! |
@valendesigns rtl version looks good on firefox. |
@omid-khd you have to clear you cache on chrome OR do a ctrl + f5 refresh OR try opening an incognito window and check if the labels are still there. I don't see them after Derek added text-indentation to span. |
@jetonr it maybe from my cache but i do what you said and still the same.also i test plugin on ie9 (never test it before for date/time picker) and it looks the same. |
@omid-khd check if you have the latest changes: open assets/css/ot-admin.css see if you have the following code starting from line 1621. If not download the file again from
|
You were right @omid-khd they still show even with text-indent:-9999. |
How to change the date format? |
@victoras i just added a filter to modify date format. Maybe @valendesigns will add it to the upcoming 📦 hot-fix. If you want to use it now see my latest pull-request on option-tree. The function to change date_format: function jrweb_ot_date_format( $date_format ) {
return $date_format = 'd M, y';
}
add_filter('ot_date_format', 'jrweb_ot_date_format', 10, 1); To see avaliable dateformats for jquery ui datepicker refer to http://api.jqueryui.com/datepicker/#utility-formatDate |
Thanks @jetonr |
Will be nice to have Date picker option.
The text was updated successfully, but these errors were encountered: