diff --git a/static/client/js/rejs/tops.js b/static/client/js/rejs/tops.js index 1cfffe7b..9c7e89ba 100644 --- a/static/client/js/rejs/tops.js +++ b/static/client/js/rejs/tops.js @@ -68,11 +68,18 @@ xhr.send(); }; + var removeDublicates = function () { + $('div#' + PARENT_ID + ' ul li.cl-item').each(function(index, el) { + $('div.page-body ul.cat-list li.cl-item a[href=\'' + $(el).data('url') + '\']').parents('li.cl-item').remove(); + }); + } + var insertTops = function (text) { var parent = document.getElementById(PARENT_ID); if (parent) { parent.innerHTML = text; + removeDublicates(); } }; diff --git a/templates/client/includes/exposition/expo_top.html b/templates/client/includes/exposition/expo_top.html index dbe0056e..986ef910 100644 --- a/templates/client/includes/exposition/expo_top.html +++ b/templates/client/includes/exposition/expo_top.html @@ -5,7 +5,7 @@