|
Lines 3-8
Link Here
|
| 3 |
# Converted to new plugin style (Bug 13437) |
3 |
# Converted to new plugin style (Bug 13437) |
| 4 |
|
4 |
|
| 5 |
# Copyright 2000-2002 Katipo Communications |
5 |
# Copyright 2000-2002 Katipo Communications |
|
|
6 |
# Parts copyright Athens County Public Libraries 2019 |
| 6 |
# |
7 |
# |
| 7 |
# This file is part of Koha. |
8 |
# This file is part of Koha. |
| 8 |
# |
9 |
# |
|
Lines 32-44
my $builder = sub {
Link Here
|
| 32 |
<script> |
33 |
<script> |
| 33 |
// from: cataloguing/value_builder/dateaccessioned.pl |
34 |
// from: cataloguing/value_builder/dateaccessioned.pl |
| 34 |
|
35 |
|
|
|
36 |
\$(document).ready(function(){ |
| 37 |
\$("#$function_name").datepicker({ |
| 38 |
dateFormat: "yy-mm-dd" |
| 39 |
}); |
| 40 |
}); |
| 41 |
|
| 35 |
function Focus$function_name(event) { |
42 |
function Focus$function_name(event) { |
| 36 |
set_to_today(event.data.id); |
43 |
set_to_today(event.data.id); |
|
|
44 |
\$("#$function_name").datepicker("show"); |
| 45 |
|
| 37 |
} |
46 |
} |
| 38 |
|
47 |
|
| 39 |
function Click$function_name(event) { |
48 |
function Click$function_name(event) { |
|
|
49 |
event.preventDefault(); |
| 40 |
set_to_today(event.data.id, 1); |
50 |
set_to_today(event.data.id, 1); |
| 41 |
return false; // prevent page scroll |
|
|
| 42 |
} |
51 |
} |
| 43 |
|
52 |
|
| 44 |
function set_to_today( id, force ) { |
53 |
function set_to_today( id, force ) { |