sugilog / jquery.daterangepicker Goto Github PK
View Code? Open in Web Editor NEWdaterange UI selectable widget for jquery
Home Page: http://d.hatena.ne.jp/sugilog/20120121/1327155899
License: MIT License
daterange UI selectable widget for jquery
Home Page: http://d.hatena.ne.jp/sugilog/20120121/1327155899
License: MIT License
Not work on IE 11
Hi,
$.fn.daterangepicker does not work for me on IE 11.
Thank you.
Index: /jquery.daterangepicker/javascript/jquery.daterangepicker.js
===================================================================
--- /a/jquery.daterangepicker/javascript/jquery.daterangepicker.js
+++ /b/jquery.daterangepicker/javascript/jquery.daterangepicker.js
@@ -383,15 +383,22 @@
$("<tr>").addClass("daterangepicker_preset_header")
.append($("<td>").text("presets"))
);
$.each(presetsList, function(idx, preset) {
+ var range, from, to;
+
if (/([0-9_\/]*)-([0-9_\/]*)/.test(preset.range)) {
- var range = {
- from: new Date(RegExp.$1),
- to: new Date(RegExp.$2)
+ from = RegExp.$1;
+ to = RegExp.$2;
+
+ range = {
+ from: (from && from !== "") ? new Date(RegExp.$1) : undefined,
+ to: (to && to !== "") ? new Date(RegExp.$2) : undefined
}
tbody.append(
$("<tr>").append(
$("<td>").addClass("daterangepicker_preset_item")
.append(
UI view for November month, repeat any one date twice.
assign 'none'
[ -Infinity to AssignedDate ] OR [ AssignedDate to Infinity ]
Hi
the firm that I am working at is using the daterangepicker, but are also using the jquery ui datepicker for single dates, I believe they like the feature where you can click on the month or year and have the calander change to the list of months, can that be done in the datepicker, is there an option in the daterangepicker so it can only show one calendar instead of both, I understand it wouldnt be a range anymore.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.