From a55ee802913e0d4f172e1cc46f3062f1d37f77a0 Mon Sep 17 00:00:00 2001 From: Chupurnov Valeriy Date: Wed, 24 Feb 2016 18:52:52 +0500 Subject: [PATCH] New version 2.4.9 --- bower.json | 5 +++++ index.html | 2 ++ package.json | 1 + 3 files changed, 8 insertions(+) diff --git a/bower.json b/bower.json index 1b7de3e..4cf7813 100644 --- a/bower.json +++ b/bower.json @@ -42,6 +42,11 @@ "homepage": "http://xdsoft.net/contacts.html" } ], + "dependencies": { + "jquery": ">= 1.7.2", + "jquery-mousewheel": ">= 3.1.13", + "php-date-formatter": ">= 1.3.3" + }, "license": "MIT", "homepage": "http://xdsoft.net/jqplugins/datetimepicker/", "repository": { diff --git a/index.html b/index.html index 27a4a18..47c5e39 100644 --- a/index.html +++ b/index.html @@ -87,6 +87,8 @@ window.onerror = function(errorMsg) { $.datetimepicker.setLocale('en'); $('#datetimepicker_format').datetimepicker({value:'2015/04/15 05:03', format: $("#datetimepicker_format_value").val()}); +console.log($('#datetimepicker_format').datetimepicker('getValue')); + $("#datetimepicker_format_change").on("click", function(e){ $("#datetimepicker_format").data('xdsoft_datetimepicker').setOptions({format: $("#datetimepicker_format_value").val()}); }); diff --git a/package.json b/package.json index 78325d1..97ca5b4 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "concat": "concat-cli -f bower_components/php-date-formatter/js/php-date-formatter.js jquery.datetimepicker.js bower_components/jquery-mousewheel/jquery.mousewheel.js -o build/jquery.datetimepicker.full.js", "minify": "uglifyjs jquery.datetimepicker.js -c -m -o build/jquery.datetimepicker.min.js", "minifyconcat": "uglifyjs build/jquery.datetimepicker.full.js -c -m -o build/jquery.datetimepicker.full.min.js", + "github": "git add --all && git commit -m \"New version %npm_package_version%\" && git tag %npm_package_version% && git push --tags origin HEAD:master && npm publish", "build": "npm run minify && npm run concat && npm run minifyconcat" }, "repository": {