mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
UMD module definition
This commit is contained in:
parent
228f5f4e81
commit
a9c7b81bf1
@ -4,7 +4,18 @@
|
||||
* (c) 2014, Chupurnov Valeriy.
|
||||
*/
|
||||
/*global document,window,jQuery,setTimeout,clearTimeout,HighlightedDate,getCurrentValue*/
|
||||
(function ($) {
|
||||
(function (factory) {
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['jquery', 'jquery-mousewheel'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// Node/CommonJS style for Browserify
|
||||
module.exports = factory;
|
||||
} else {
|
||||
// Browser globals
|
||||
factory(jQuery);
|
||||
}
|
||||
}(function ($) {
|
||||
'use strict';
|
||||
var default_options = {
|
||||
i18n: {
|
||||
@ -2118,11 +2129,12 @@
|
||||
});
|
||||
};
|
||||
$.fn.datetimepicker.defaults = default_options;
|
||||
}(jQuery));
|
||||
|
||||
function HighlightedDate(date, desc, style) {
|
||||
"use strict";
|
||||
this.date = date;
|
||||
this.desc = desc;
|
||||
this.style = style;
|
||||
}
|
||||
function HighlightedDate(date, desc, style) {
|
||||
"use strict";
|
||||
this.date = date;
|
||||
this.desc = desc;
|
||||
this.style = style;
|
||||
}
|
||||
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user