From 30e642527dfae31ce5abbe2d51d46edd558d4059 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 files 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 3a0f503..e3ebf0b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js @@ -681,7 +681,7 @@ function calcNewsuggTotal(){ function getAuthValueDropbox( name, cat, destination, selected ) { if (cat == null || cat == "") { - $(destination).replaceWith(' ' ); + $(destination).replaceWith(' ' ); return; } $.ajax({ @@ -694,7 +694,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.2.5