From 08b47e7d4f640aec5eb46a9a0a33ed48b58a3971 Mon Sep 17 00:00:00 2001 From: Christophe Gosiau Date: Thu, 24 Sep 2015 11:48:34 +0200 Subject: [PATCH] function name cannot contain a dash --- README.md | 7 ++++--- js/tigron-datetimepicker.js | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d534d27..e344f45 100644 --- a/README.md +++ b/README.md @@ -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' @@ -26,11 +26,12 @@ Installation with bower: include the following line in your project: - `` + + Activate: - $('.datepicker').tigron-datetimepicker({ + $('.datepicker').tigronDatetimepicker({ 'format': 'DD/MM/YYYY HH:mm', 'extraFormats': [ 'YYYY-MM-DD HH:mm' ], 'postFormat': 'YYYY-MM-DD HH:mm' diff --git a/js/tigron-datetimepicker.js b/js/tigron-datetimepicker.js index 7ad041e..5acf78d 100644 --- a/js/tigron-datetimepicker.js +++ b/js/tigron-datetimepicker.js @@ -1,5 +1,5 @@ (function ($) { - $.fn.tigron-datetimepicker = function (options) { + $.fn.tigronDatetimepicker = function (options) { if (typeof options.postFormat === 'undefined') { options.postFormat = options.format; } @@ -34,4 +34,3 @@ }) }; })(jQuery); -