Repository : http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
commit cfd7c94bca9f39232de5541e57d847581596d85b Author: Johan Cwiklinski johan@x-tnd.be Date: Wed Nov 28 19:50:16 2012 +0100
Missing JS file...
fedocal/static/jquery-ui-timespinner.js | 35 +++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/fedocal/static/jquery-ui-timespinner.js b/fedocal/static/jquery-ui-timespinner.js new file mode 100644 index 0000000..c808d64 --- /dev/null +++ b/fedocal/static/jquery-ui-timespinner.js @@ -0,0 +1,35 @@ +// define additional culture information for a possibly existing culture +Globalize.addCultureInfo( "fedocal", { + calendars: { + standard: { + patterns: { + t: 'HH:mm' + } + } + } +}); +Globalize.culture("fedocal"); + +$.widget( "ui.timespinner", $.ui.spinner, { + options: { + // half an hour + step: 30 * 60 * 1000, + // hours + page: 60 + }, + + _parse: function( value ) { + if ( typeof value === "string" ) { + // already a timestamp + if ( Number( value ) == value ) { + return Number( value ); + } + return +Globalize.parseDate( value ); + } + return value; + }, + + _format: function( value ) { + return Globalize.format( new Date(value), "t" ); + } +});
fedocal-devel@lists.fedorahosted.org