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);
-