From 0bf62eaf1232076506e11629106bed79420395de Mon Sep 17 00:00:00 2001
From: llaffont <llaffont@git-test.afi-sa.fr>
Date: Mon, 10 Jun 2013 16:06:14 +0000
Subject: [PATCH] =?UTF-8?q?Babeltheque:=20correction=20chargement=20des=20?=
 =?UTF-8?q?enrichissements=20lorsque=20non=20connect=C3=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 public/opac/js/babeltheque.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/public/opac/js/babeltheque.js b/public/opac/js/babeltheque.js
index b44ca9c173e..21a1b895081 100644
--- a/public/opac/js/babeltheque.js
+++ b/public/opac/js/babeltheque.js
@@ -35,8 +35,8 @@
 
 	var bwid = getJSParamNamed('babeltheque.js', 'bwid');
 
-	window.loadBabelthequeScript = function() {
-		insertBabelthequeISBNTag();
+	window.loadBabelthequeScript = function(isbn) {
+		insertBabelthequeISBNTag(isbn);
 		$.getScript('http://www.babeltheque.com/bw_' + bwid +'.js');
 	}
 })();
@@ -49,7 +49,7 @@ $.fn.babelthequeTag=function(info) {
 }
 
 
-var insertBabelthequeISBNTag = function() {
+var insertBabelthequeISBNTag = function(isbn) {
 	if (!$('input#BW_id_isbn'))
 		$('body').append('<input type="hidden" id="BW_id_isbn" value="'+isbn+'"\>');
 }
@@ -64,7 +64,7 @@ var blocNoticeAfterLoad = function (info, isbn, target) {
 		return;
 
 	callback(target);
-	loadBabelthequeScript();
+	loadBabelthequeScript(isbn);
 }
 
 
-- 
GitLab