share/views/public/js/app.js in rbbt-rest-1.8.45 vs share/views/public/js/app.js in rbbt-rest-1.8.46

- old
+ new

@@ -42,14 +42,15 @@ register_dom_update(('.next'), function(elem){ elem.click(function(){ var trigger = $(this) var next = trigger.next() + var active = trigger.hasClass('active') next.siblings().removeClass('show').removeClass('active') + if (! active) trigger.addClass('active') next.toggleClass('show') - trigger.toggleClass('active') }) }) register_dom_update('#top_menu > .reload', function(item){ item.click(function(){ @@ -73,9 +74,25 @@ return false; }) }) if (undefined !== rbbt.favourites && user != 'none') rbbt.favourites.update() + + register_dom_update('.entity_card .card_sidebar_open', function(link){ + var link = $($(link)[0]) + link.click(function(){ + $(this).parents('.entity_card').first().find('.card_sidebar').toggleClass('hidden') + return false + }) + }) + + register_dom_update('.entity_list_card .card_sidebar_open', function(link){ + var link = $($(link)[0]) + link.click(function(){ + $(this).parents('.entity_list_card').first().find('.card_sidebar').toggleClass('hidden') + return false + }) + }) update_rbbt() })