--- /dev/null
+--- trunk/demo/scripts/jquery.datePicker.js 2011-11-22 11:15:26.912614656 +0200
++++ trunk/demo/scripts/jquery.datePicker.js 2011-11-22 11:13:47.781893200 +0200
+@@ -852,15 +852,7 @@
+ $('<h2></h2>'),
+ $('<div class="dp-nav-prev"></div>')
+ .append(
+- $('<a class="dp-nav-prev-year" href="#" title="' + $.dpText.TEXT_PREV_YEAR + '"><<</a>')
+- .bind(
+- 'click',
+- function()
+- {
+- return c._displayNewMonth.call(c, this, 0, -1);
+- }
+- ),
+- $('<a class="dp-nav-prev-month" href="#" title="' + $.dpText.TEXT_PREV_MONTH + '"><</a>')
++ $('<a class="dp-nav-prev-month" href="#" title="' + $.dpText.TEXT_PREV_MONTH + '"></a>')
+ .bind(
+ 'click',
+ function()
+@@ -871,24 +863,37 @@
+ ),
+ $('<div class="dp-nav-next"></div>')
+ .append(
+- $('<a class="dp-nav-next-year" href="#" title="' + $.dpText.TEXT_NEXT_YEAR + '">>></a>')
++ $('<a class="dp-nav-next-month" href="#" title="' + $.dpText.TEXT_NEXT_MONTH + '"></a>')
+ .bind(
+ 'click',
+ function()
+ {
+- return c._displayNewMonth.call(c, this, 0, 1);
++ return c._displayNewMonth.call(c, this, 1, 0);
+ }
+- ),
+- $('<a class="dp-nav-next-month" href="#" title="' + $.dpText.TEXT_NEXT_MONTH + '">></a>')
++ )
++ ),
++ $('<div class="dp-calendar"></div>'),
++ $('<div class="dp-bottom"></div>').append(
++ $('<div class="dp-bottom-prev"><a class="dp-nav-prev-year" href="#" title="' + $.dpText.TEXT_PREV_YEAR + '">'+(c.displayedYear-1)+'</a></div>')
++ .bind(
++ 'click',
++ function()
++ {
++ return c._displayNewMonth.call(c, this, 0, -1);
++ }
++ )
++ ).append(
++ $('<div class="dp-bottom-next"><a class="dp-nav-next-year" href="#" title="' + $.dpText.TEXT_NEXT_YEAR + '">'+(c.displayedYear+1)+'</a></div>')
+ .bind(
+ 'click',
+ function()
+ {
+- return c._displayNewMonth.call(c, this, 1, 0);
++ return c._displayNewMonth.call(c, this, 0, 1);
+ }
+ )
+- ),
+- $('<div class="dp-calendar"></div>')
++ )
++
++
+ )
+ .bgIframe()
+ );
+@@ -1122,6 +1127,10 @@
+ }
+ }
+ }
++ $('.dp-nav-next-year', this.context).text(this.displayedYear+1);
++ $('.dp-nav-prev-year', this.context).text(this.displayedYear-1);
++
++
+ this._applyRenderCallbacks();
+ },
+ _closeCalendar : function(programatic, ele)
%define svnrev 108
-%define rel 3
+%define rel 4
%define plugin datepicker
Summary: A flexible unobtrusive calendar component for jQuery
Name: jquery-%{plugin}
# Source0-md5: df393f932ff6d5a37d4a0856c1cbb216
Source1: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/scripts/jquery.datePicker.js
# Source1-md5: 43dbc8fe7ec22688e268068982477c9c
+Patch0: alt-view.patch
URL: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/
BuildRequires: js
-BuildRequires: rpmbuild(macros) >= 1.565
+BuildRequires: rpmbuild(macros) >= 1.553
BuildRequires: yuicompressor
Requires: jquery >= 1.2.1
Requires: jquery-methods
%prep
%setup -q
-cp -p %{SOURCE1} dist
+cp -p %{SOURCE1} demo/scripts/jquery.datePicker.js
+%undos -f js
+%patch0 -p1
%build
install -d build
# compress .js
-js=dist/jquery.datePicker.js
+js=demo/scripts/jquery.datePicker.js
out=build/jquery.datePicker.js
%if 0%{!?debug:1}
yuicompressor --charset UTF-8 $js -o $out