From f06e1fb90ebc8b0ef6bd9417f81d9cbe77f86257 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 20 Mar 2013 12:32:07 +0100 Subject: [PATCH] Bug 7180: FIX getAuthValueDropbox should display the selected value If the no AV match the name/category or if no category is defined, the input field should contain the value. Signed-off-by: Pierre Angot --- koha-tmpl/intranet-tmpl/prog/en/js/acq.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js index f89bb55..3af97bb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js @@ -674,7 +674,7 @@ function calcNewsuggTotal(){ function getAuthValueDropbox( name, cat, destination, selected ) { if (cat == null || cat == "") { - $(destination).replaceWith(' ' ); + $(destination).replaceWith(' ' ); return; } $.ajax({ @@ -687,7 +687,7 @@ function getAuthValueDropbox( name, cat, destination, selected ) { async: false, success: function(data){ if(data === "0"){ - $(destination).replaceWith(' ' ); + $(destination).replaceWith(' ' ); }else{ $(destination).replaceWith(data); } -- 1.7.10.4