Bugzilla – Attachment 55013 Details for
Bug 14060
Remove readonly on date inputs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 14060: Add OnClose event on missing datepicker
SIGNED-OFF-Bug-14060-Add-OnClose-event-on-missing-.patch (text/plain), 3.37 KB, created by
Owen Leonard
on 2016-08-30 13:05:33 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 14060: Add OnClose event on missing datepicker
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-08-30 13:05:33 UTC
Size:
3.37 KB
patch
obsolete
>From 303909609a7cb3070886bc4feae58badc01a69ae Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 27 Apr 2015 10:39:14 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 14060: Add OnClose event on missing > datepicker >Content-Type: text/plain; charset="utf-8" > >The "suspend until" inputs (hold list on circ/circulation.pl and >members/moremember.pl) were not set in the same way. >The minDate option should be set for both (bug 10703 removed it for >circ/circulation.pl). >This patch reintroduces the option and add the OnClose event on both. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 10 +++++++++- > koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 10 ++++++++-- > 2 files changed, 17 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 84ddc48..ba469ee 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -107,6 +107,14 @@ $(document).ready(function() { > $("#onsite_checkout").click(function(){ > toggle_onsite_checkout(); > }); >+ >+ $("#suspend_until").datepicker({ >+ onClose: function(dateText, inst) { >+ validate_date(dateText, inst); >+ }, >+ minDate: 1, // require that hold suspended until date is after today >+ }); >+ > }); > > //]]> >@@ -949,7 +957,7 @@ No patron matched <span class="ex">[% message | html %]</span> > > [% IF AutoResumeSuspendedHolds %] > <label for="suspend_until">until</label> >- <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" /> >+ <input type="text" size="10" id="suspend_until" name="suspend_until datepicker" /> > <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span> > [% END %] > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 72c1548..f89273f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -83,7 +83,13 @@ $(document).ready(function() { > return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone.")); > });[% END %] > >- $("#suspend_until").datepicker({ minDate: 1 }); // require that hold suspended until date is after today >+ $("#suspend_until").datepicker({ >+ onClose: function(dateText, inst) { >+ validate_date(dateText, inst); >+ }, >+ minDate: 1, // require that hold suspended until date is after today >+ }); >+ > $("#view_restrictions").on("click",function(){ > $('#debarments-tab-link').click(); > }); >@@ -547,7 +553,7 @@ function validate1(date) { > > [% IF AutoResumeSuspendedHolds %] > <label for="suspend_until">until</label> >- <input type="text" size="10" id="suspend_until" name="suspend_until"/> >+ <input type="text" size="10" id="suspend_until" name="suspend_until datepicker"/> > <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span> > [% END %] > </form> >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14060
:
38484
|
38540
|
38541
|
44542
|
44543
|
44544
|
45282
|
46224
|
54606
|
54607
|
54608
|
54609
|
54610
|
54902
|
54903
|
54904
|
54905
|
54906
|
54907
|
55001
|
55002
|
55012
|
55013
|
55014
|
55015
|
55016
|
55017
|
55018
|
55019
|
55165
|
55246
|
55247
|
55248
|
55249
|
55250
|
55251
|
55252
|
55253
|
55254
|
55255
|
55256