diff --git a/VERSIONS_HOTLINE/73203 b/VERSIONS_HOTLINE/73203 new file mode 100644 index 0000000000000000000000000000000000000000..488c48fef8e8a50e771a3dd2406cb193552880d6 --- /dev/null +++ b/VERSIONS_HOTLINE/73203 @@ -0,0 +1,2 @@ + - ticket #73203 : Service Babélio : correction de la compatibilité avec JQuery 3.2.1 + \ No newline at end of file diff --git a/public/opac/js/babeltheque.js b/public/opac/js/babeltheque.js index cc108c0ffcc3bd1425b572845df244bd645fe581..d7b59b925973cd59a712253935bc13256881b085 100644 --- a/public/opac/js/babeltheque.js +++ b/public/opac/js/babeltheque.js @@ -50,7 +50,7 @@ $.fn.babelthequeTag=function(info) { var insertBabelthequeISBNTag = function(isbn) { - if (!$('input#BW_id_isbn').size()) + if (!$('input#BW_id_isbn').length) $('body').append('<input type="hidden" id="BW_id_isbn" value="'+isbn+'"\>'); } @@ -76,7 +76,7 @@ var tagsNoticeAfterLoad = function(target) { var avisNoticeAfterLoad = function(target) { var tr_critiques = target.find('table tr:nth-child(2)'); - if (!tr_critiques.find('ul').size()) + if (!tr_critiques.find('ul').length) $('<ul></ul>').appendTo(tr_critiques); var ul_critiques = tr_critiques.find('ul');