packages: jquery-datepicker/jquery-datepicker.spec, jquery-datepicker/alt-v...
glen
glen at pld-linux.org
Tue Nov 22 11:34:01 CET 2011
Author: glen Date: Tue Nov 22 10:34:01 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- try alternate calendar view patch
---- Files affected:
packages/jquery-datepicker:
jquery-datepicker.spec (1.5 -> 1.6) , alt-view.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/jquery-datepicker/jquery-datepicker.spec
diff -u packages/jquery-datepicker/jquery-datepicker.spec:1.5 packages/jquery-datepicker/jquery-datepicker.spec:1.6
--- packages/jquery-datepicker/jquery-datepicker.spec:1.5 Mon Nov 21 23:11:08 2011
+++ packages/jquery-datepicker/jquery-datepicker.spec Tue Nov 22 11:33:56 2011
@@ -1,6 +1,6 @@
# $Revision$, $Date$
%define svnrev 108
-%define rel 3
+%define rel 4
%define plugin datepicker
Summary: A flexible unobtrusive calendar component for jQuery
Name: jquery-%{plugin}
@@ -15,9 +15,10 @@
# 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
@@ -43,13 +44,15 @@
%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
@@ -92,6 +95,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2011/11/22 10:33:56 glen
+- try alternate calendar view patch
+
Revision 1.5 2011/11/21 22:11:08 glen
- depends on jquery-methods for date.js
================================================================
Index: packages/jquery-datepicker/alt-view.patch
diff -u /dev/null packages/jquery-datepicker/alt-view.patch:1.1
--- /dev/null Tue Nov 22 11:34:01 2011
+++ packages/jquery-datepicker/alt-view.patch Tue Nov 22 11:33:56 2011
@@ -0,0 +1,75 @@
+--- 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)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/jquery-datepicker/jquery-datepicker.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list