Skip to content

Commit

Permalink
Fix for using multiple instances
Browse files Browse the repository at this point in the history
  • Loading branch information
David Vandemaele committed May 3, 2017
1 parent 17c27d5 commit a6ecf9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tigron-datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
$('input.' + classname).val(value);
});

var count = 1;
var count = $('input[class^="datetimepicker_"]').length + 1;

$.each($(this), function(element, value) {
input = getInput($(this));
Expand Down

0 comments on commit a6ecf9b

Please sign in to comment.