Skip to content

Commit

Permalink
function name cannot contain a dash
Browse files Browse the repository at this point in the history
  • Loading branch information
christopheg committed Sep 24, 2015
1 parent 7f1e0f2 commit 08b47e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extension will create a hidden input field that contains the selected datetime
in the format set in 'postFormat'.
This makes it easier to parse the datetime after POST.

$('.datepicker').tigron-datetimepicker({
$('.datepicker').tigronDatetimepicker({
'format': 'DD/MM/YYYY HH:mm',
'extraFormats': [ 'YYYY-MM-DD HH:mm' ],
'postFormat': 'YYYY-MM-DD HH:mm'
Expand All @@ -26,11 +26,12 @@ Installation with bower:

include the following line in your project:

`<script src="/bower_components/tigron-datetimepicker/js/tigron-datetimepicker.js"></script>`
<script src="/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
<script src="/tigron-datetimepicker/js/tigron-datetimepicker.js"></script>

Activate:

$('.datepicker').tigron-datetimepicker({
$('.datepicker').tigronDatetimepicker({
'format': 'DD/MM/YYYY HH:mm',
'extraFormats': [ 'YYYY-MM-DD HH:mm' ],
'postFormat': 'YYYY-MM-DD HH:mm'
Expand Down
3 changes: 1 addition & 2 deletions js/tigron-datetimepicker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function ($) {
$.fn.tigron-datetimepicker = function (options) {
$.fn.tigronDatetimepicker = function (options) {
if (typeof options.postFormat === 'undefined') {
options.postFormat = options.format;
}
Expand Down Expand Up @@ -34,4 +34,3 @@
})
};
})(jQuery);

0 comments on commit 08b47e7

Please sign in to comment.