From b0057c22b37f67d51ab810295f7bf215bd9f9170 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 6588408..82f5f49 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js @@ -675,7 +675,7 @@ function calcNewsuggTotal(){ function getAuthValueDropbox( name, cat, destination, selected ) { if (cat == null || cat == "") { - $(destination).replaceWith(' ' ); + $(destination).replaceWith(' ' ); return; } $.ajax({ @@ -688,7 +688,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