question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Datepicker sample page and plugin outdated

See original GitHub issue

Hello Abdullah!

I didn’t find any sample page using Datepicker plugin, just samples using Daterangepicker.

After that I found that there is a Datepicker plugin inside AdminLTE plugins folder, and so I tried to use that. It worked as expected, but with some weird style, and I did add the css and js references. So I went to their git repo, downloaded the current version, updated the plugin datepicker folder, and the weird style went away. Here is the sample of the up-to-date version of datepicker:

exemplo

That being said, I have two suggestions:

1: In the advanced form sample page, add some Datepicker sample, not only daterangepicker. 2: Update the datepicker plugin folder to the lastest version (bootstrap-datepicker.js and bootstrap-datepicker3.css is enough).

Here is my code sample:

<div class="form-group">
    <label class="col-md-2 control-label" for="Date">Date</label>
    <div class="col-md-10">
        <div class="input-group">
            <div class="input-group-addon">
                <i class="fa fa-calendar"></i>
            </div>
            <input type="text" class="form-control" id="Date"/>
        </div>
    </div>
</div>
$('#Date').datepicker({
    autoclose: true,
    todayHighlight: true
});

Thanks! Rafael Pacheco.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chandranaccommented, Dec 29, 2015

This did the trick for me… $(function(){ //Date range picker with time picker $(‘#reservationtime’).daterangepicker({ timePicker: false, //<==MAKE THE CHANGE HERE singleDatePicker: true, //<==MAKE THE CHANGE HERE }); })

1reaction
masteradhoccommented, Jun 24, 2015

Thanks Rafael!

I do not like the idea to call each datepicker alone. Isnt there an easy way to address all datepickers/more datepickers on a page with one command?

Am 24.06.2015 um 18:41 schrieb Rafael Renan Pacheco notifications@github.com:

@masteradhoc download 1.4 from “bootstrap-datepicker” repo, delete the js and css from the current datepicker folder at AdminLTE, and put the bootstrap-datepicker.js and bootstrap-datepicker3.css, as well the lang folder, in the datepicker AdminLTE plugin folder.

Then just reference bootstrap-datepicker.js and bootstrap-datepicker3.css in your app.

Does someone know how to put two date input fields with the same name on one page? At the moment i just get one valid field e.g. one field which i get a datepicker…

Change their input ID, and call datepicker for each ID.

— Reply to this email directly or view it on GitHub.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Last update Error with date picker - WordPress.org
A site that I manage is having similar issues, related to a clash between the plugin update and Advanced Custom Fields Pro. The...
Read more >
Plugin out of date message, but it's not.. - - The Events Calendar
I am getting the red warning message in my WP admin that says the following: “The following plugins are out of date: The...
Read more >
How to setup default date for jQuery inline datePicker?
I've added that into the code from the example page below: $(function() { $('.turn-me-into-datepicker') .datePicker({inline:true}) .
Read more >
Pikaday Plugin: A Repack of Date Picker from Projectify
A date-picker with calendar widget to pick a date and set to due field of ... It is based on v1.6.1 of Pikaday...
Read more >
Deprecate and remove jQuery UI datepicker - Drupal
drupal.locale.datepicker will also be deprecated as it exists only to extend the ... Based on how Opera Mini executes post-page load JS, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found