Skip to content

#737 #772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

#737 #772

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jqueryui-timepicker-addon",
"version": "1.5.0",
"version": "1.5.1",
"repository": {
"type": "git",
"url": "git://github.com/trentrichardson/jQuery-Timepicker-Addon.git"
Expand Down
23 changes: 22 additions & 1 deletion dist/i18n/jquery-ui-timepicker-addon-i18n.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jQuery Timepicker Addon - v1.5.0 - 2014-09-01
/*! jQuery Timepicker Addon - v1.5.1 - 2014-09-01
* http://trentrichardson.com/examples/timepicker
* Copyright (c) 2014 Trent Richardson; Licensed MIT */

Expand Down Expand Up @@ -468,6 +468,27 @@
isRTL: false
};

// source: src/i18n/jquery-ui-timepicker-lv.js
/* Latvian translation for the jQuery Timepicker Addon */
/* Written by Dmitry Bogatykh */

$.timepicker.regional['lv'] = {
timeOnlyTitle: 'Ievadiet laiku',
timeText: 'Laiks',
hourText: 'Stundas',
minuteText: 'Minūtes',
secondText: 'Sekundes',
millisecText: 'Milisekundes',
microsecText: 'Mikrosekundes',
timezoneText: 'Laika josla',
currentText: 'Tagad',
closeText: 'Aizvērt',
timeFormat: 'HH:mm',
amNames: ['AM', 'AM', 'A'],
pmNames: ['PM', 'PM', 'P'],
isRTL: false
};

// source: src/i18n/jquery-ui-timepicker-nl.js
/* Dutch translation for the jQuery Timepicker Addon */
/* Written by Martijn van der Lee */
Expand Down
4 changes: 2 additions & 2 deletions dist/i18n/jquery-ui-timepicker-addon-i18n.min.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions dist/i18n/jquery-ui-timepicker-lv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Latvian translation for the jQuery Timepicker Addon */
/* Written by Dmitry Bogatykh */
(function($) {
$.timepicker.regional['lv'] = {
timeOnlyTitle: 'Ievadiet laiku',
timeText: 'Laiks',
hourText: 'Stundas',
minuteText: 'Minūtes',
secondText: 'Sekundes',
millisecText: 'Milisekundes',
microsecText: 'Mikrosekundes',
timezoneText: 'Laika josla',
currentText: 'Tagad',
closeText: 'Aizvērt',
timeFormat: 'HH:mm',
amNames: ['AM', 'AM', 'A'],
pmNames: ['PM', 'PM', 'P'],
isRTL: false
};
$.timepicker.setDefaults($.timepicker.regional['lv']);
})(jQuery);
13 changes: 7 additions & 6 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h3>Requirements</h3>

<br />
<h3>Version</h3>
<p>Version 1.5.0</p>
<p>Version 1.5.1</p>

<p>Last updated on 2014-09-01</p>
<p>jQuery Timepicker Addon is currently available for use in all personal or commercial projects under the MIT license.</p>
Expand Down Expand Up @@ -1070,15 +1070,16 @@ <h3 id="utility_examples">Utilities</h3>
</script>

<script type="text/javascript" src="https://sellfy.com/js/api_buttons.js"></script>

<script type="text/javascript"> /*
<!--
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
*/</script>
<script type="text/javascript"> /*
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7602218-1");
pageTracker._trackPageview();
} catch(err) {}*/</script>
} catch(err) {}</script>
-->
</body>
</html>
8 changes: 4 additions & 4 deletions dist/jquery-ui-timepicker-addon.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jQuery Timepicker Addon - v1.5.0 - 2014-09-01
/*! jQuery Timepicker Addon - v1.5.1 - 2014-09-01
* http://trentrichardson.com/examples/timepicker
* Copyright (c) 2014 Trent Richardson; Licensed MIT */
(function ($) {
Expand All @@ -16,7 +16,7 @@
*/
$.extend($.ui, {
timepicker: {
version: "1.5.0"
version: "1.5.1"
}
});

Expand Down Expand Up @@ -307,7 +307,7 @@
* add our sliders to the calendar
*/
_addTimePicker: function (dp_inst) {
var currDT = (this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val();
var currDT = $.trim((this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val());

this.timeDefined = this._parseTime(currDT);
this._limitMinMaxDateTime(dp_inst, false);
Expand Down Expand Up @@ -2218,6 +2218,6 @@
/*
* Keep up with the version
*/
$.timepicker.version = "1.5.0";
$.timepicker.version = "1.5.1";

})(jQuery);
4 changes: 2 additions & 2 deletions dist/jquery-ui-timepicker-addon.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/jquery-ui-timepicker-addon.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jquery-ui-timepicker-addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jquery-ui-timepicker-addon",
"title": "jQuery Timepicker Addon",
"description": "A timepicker addon for jQueryUI datepicker.",
"version": "1.5.0",
"version": "1.5.1",
"modified": "2014-09-01",
"homepage": "http://trentrichardson.com/examples/timepicker",
"author": {
Expand Down
11 changes: 6 additions & 5 deletions src/docs/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@
</script>

<script type="text/javascript" src="https://sellfy.com/js/api_buttons.js"></script>

<script type="text/javascript"> /*
<!--
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
*/</script>
<script type="text/javascript"> /*
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7602218-1");
pageTracker._trackPageview();
} catch(err) {}*/</script>
} catch(err) {}</script>
-->
</body>
</html>
21 changes: 21 additions & 0 deletions src/i18n/jquery-ui-timepicker-lv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Latvian translation for the jQuery Timepicker Addon */
/* Written by Dmitry Bogatykh */
(function($) {
$.timepicker.regional['lv'] = {
timeOnlyTitle: 'Ievadiet laiku',
timeText: 'Laiks',
hourText: 'Stundas',
minuteText: 'Minūtes',
secondText: 'Sekundes',
millisecText: 'Milisekundes',
microsecText: 'Mikrosekundes',
timezoneText: 'Laika josla',
currentText: 'Tagad',
closeText: 'Aizvērt',
timeFormat: 'HH:mm',
amNames: ['AM', 'AM', 'A'],
pmNames: ['PM', 'PM', 'P'],
isRTL: false
};
$.timepicker.setDefaults($.timepicker.regional['lv']);
})(jQuery);
4 changes: 2 additions & 2 deletions src/jquery-ui-timepicker-addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
* add our sliders to the calendar
*/
_addTimePicker: function (dp_inst) {
var currDT = (this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val();
var currDT = $.trim((this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val());

this.timeDefined = this._parseTime(currDT);
this._limitMinMaxDateTime(dp_inst, false);
Expand Down Expand Up @@ -1071,7 +1071,7 @@
o[opts] = val;
}
else { o = opts; }
return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), o.min || $t.data('min'), o.max || $t.data('max'), o.step || $t.data('step'));
return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), o.min>=0 ? o.min : $t.data('min'), o.max || $t.data('max'), o.step || $t.data('step'));
},
value: function (tp_inst, obj, unit, val) {
var $t = obj.children('select');
Expand Down