Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/Plaristote/Multiple-Dates-P…
Browse files Browse the repository at this point in the history
…icker-for-jQuery-UI into master

 - Added the factory declaration and updated the version.
 - Decided no to move the file to dist directory right now,
   might do it later on when implementing a build system.
  • Loading branch information
dubrox committed Apr 23, 2017
1 parent 98b9f41 commit 4a82f58
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
21 changes: 14 additions & 7 deletions jquery-ui.multidatespicker.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
/*
* MultiDatesPicker v1.6.4
* http://multidatespickr.sourceforge.net/
* MultiDatesPicker v1.6.5
* https://dubrox.github.io/Multiple-Dates-Picker-for-jQuery-UI
*
* Copyright 2014, Luca Lauretta
* Copyright 2017, Luca Lauretta
* Dual licensed under the MIT or GPL version 2 licenses.
*/
(function( $ ){
$.extend($.ui, { multiDatesPicker: { version: "1.6.4" } });

(function(factory) {
if (typeof define === "function" && define.amd) {
define(["jquery", "jquery-ui-dist"], factory);
} else {
factory(jQuery);
}
}(function( $ ){
$.extend($.ui, { multiDatesPicker: { version: "1.6.5" } });

$.fn.multiDatesPicker = function(method) {
var mdp_arguments = arguments;
Expand Down Expand Up @@ -371,7 +378,7 @@

switch(this.multiDatesPicker.mode) {
case 'normal':
for(option in options)
for(var option in options)
switch(option) {
case 'maxPicks':
case 'minPicks':
Expand Down Expand Up @@ -495,4 +502,4 @@
// Workaround for #4055
// Add another global to avoid noConflict issues with inline event handlers
window['DP_jQuery_' + dpuuid] = $;
})( jQuery );
}));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Extension to the jQuery UI Calendar allowing multiple selections",
"author": "Luca Lauretta <[email protected]>",
"license": "(MIT OR GPLv2)",
"version": "1.6.4",
"version": "1.6.5",
"main": "jquery-ui.multidatespicker.js",
"repository": {
"type": "git",
Expand Down

0 comments on commit 4a82f58

Please sign in to comment.