[Koha-patches] [PATCH 10/12] (MT #3081) permit loans for today
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Sat May 1 00:19:52 CEST 2010
From: Nahuel ANGELINETTI <nahuel.angelinetti at biblibre.com>
The specify due date calendar, doesn't accept "today". This patch fix this issue and permit librarian to loan a book for one day.
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
---
.../prog/en/modules/circ/circulation.tmpl | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
index 6c6d14b..740b27b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
@@ -124,10 +124,10 @@ if (nodename =="barcodes[]"){
}
function validate1(date) {
var today = new Date();
- if ( date < today ) {
- return true;
- } else {
+ if ( today < date || date.toDateString() == today.toDateString() ) {
return false;
+ } else {
+ return true;
}
};
function refocus(calendar) {
--
1.6.3.3
More information about the Koha-patches
mailing list