Skip to content
Snippets Groups Projects
Commit 0bf62eaf authored by llaffont's avatar llaffont
Browse files

Babeltheque: correction chargement des enrichissements lorsque non connecté

parent 6f0ebb56
Branches
Tags 6.7.1
No related merge requests found
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
var bwid = getJSParamNamed('babeltheque.js', 'bwid'); var bwid = getJSParamNamed('babeltheque.js', 'bwid');
window.loadBabelthequeScript = function() { window.loadBabelthequeScript = function(isbn) {
insertBabelthequeISBNTag(); insertBabelthequeISBNTag(isbn);
$.getScript('http://www.babeltheque.com/bw_' + bwid +'.js'); $.getScript('http://www.babeltheque.com/bw_' + bwid +'.js');
} }
})(); })();
...@@ -49,7 +49,7 @@ $.fn.babelthequeTag=function(info) { ...@@ -49,7 +49,7 @@ $.fn.babelthequeTag=function(info) {
} }
var insertBabelthequeISBNTag = function() { var insertBabelthequeISBNTag = function(isbn) {
if (!$('input#BW_id_isbn')) if (!$('input#BW_id_isbn'))
$('body').append('<input type="hidden" id="BW_id_isbn" value="'+isbn+'"\>'); $('body').append('<input type="hidden" id="BW_id_isbn" value="'+isbn+'"\>');
} }
...@@ -64,7 +64,7 @@ var blocNoticeAfterLoad = function (info, isbn, target) { ...@@ -64,7 +64,7 @@ var blocNoticeAfterLoad = function (info, isbn, target) {
return; return;
callback(target); callback(target);
loadBabelthequeScript(); loadBabelthequeScript(isbn);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment