We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd6dc89 commit e1f5fbbCopy full SHA for e1f5fbb
1 file changed
js/bootstrap-datepicker.js
@@ -801,6 +801,7 @@
801
}
802
};
803
804
+ var old = $.fn.datepicker;
805
$.fn.datepicker = function ( option ) {
806
var args = Array.apply(null, arguments);
807
args.shift();
@@ -1015,4 +1016,23 @@
1015
1016
1017
$.fn.datepicker.DPGlobal = DPGlobal;
1018
1019
+ /* DATEPICKER NO CONFLICT
1020
+ * =================== */
1021
+
1022
+ $.fn.datepicker.noConflict = function () {
1023
+ $.fn.datepicker = old;
1024
+ return this;
1025
+ }
1026
1027
1028
+ /* DATEPICKER DATA-API
1029
+ * ================== */
1030
1031
+ $(document).on('focus.datepicker.data-api', '[data-provide="datepicker"]', function (e) {
1032
+ var $this = $(this);
1033
+ if ($this.data('datepicker')) return;
1034
+ e.preventDefault();
1035
+ $this.datepicker($this.data());
1036
+ })
1037
1038
}( window.jQuery );
0 commit comments