Bug 28351: (bug 26261) Fix datepicker for dateformat ne mm/dd/yyyy
This patch restores the same code we have prior to bug 26261 0. Set dateformat to mm/dd/yyyy 1. Go to a patron detail page 2. Open the 'Restrictions' tab 3. Choose a future date in which the day is higher than 12 => SUCCESS: The input has the date we chose 4. Set dateformat to dd/mm/yyyy 5. Repeat 3 => FAIL: It sets the current date, the browser console shows an error. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit539396fb27) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit43e0ad3fe1) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
4579636290
commit
34c8ad67e7
|
|
@ -192,8 +192,6 @@ $(document).ready(function () {
|
|||
}).on("change", function () {
|
||||
if (!is_valid_date($(this).val())) {
|
||||
$(this).val("");
|
||||
} else {
|
||||
$(this).datepicker("setDate",$(this).val());
|
||||
}
|
||||
});
|
||||
// http://jqueryui.com/demos/datepicker/#date-range
|
||||
|
|
|
|||
Loading…
Reference in New Issue