share/views/public/js/app.js in rbbt-rest-1.7.5 vs share/views/public/js/app.js in rbbt-rest-1.7.6

- old
+ new

@@ -12,10 +12,11 @@ $('.action_controller').action_controller() $('.ui.accordion').accordion(); $('.ui.checkbox').checkbox(); $('.rbbt_reveal_trigger').reveal() + //$('table.tablesorter').tablesorter() //$('body > #modal').modal() //$('#top_menu .favourites').favourites('update_list_selects').favourites('update_map_selects') //$('#top_bar .favourites').favourites('update_list_selects').favourites('update_map_selects') //$('select:not(.favourite_lists)').dropdown(); @@ -27,12 +28,27 @@ if (undefined !== rbbt.aesthetics){ rbbt.aesthetics.load() rbbt.aesthetics.apply() } + + + rbbt.favourites.update() } $(function(){ + + register_dom_update(('.next'), function(elem){ + elem.click(function(){ + var trigger = $(this) + var next = trigger.next() + + next.siblings().removeClass('show').removeClass('active') + + next.toggleClass('show') + trigger.toggleClass('active') + }) + }) register_dom_update('#top_menu > .reload', function(item){ item.click(function(){ var url = window.location.toString(); url = url.replace(/#$/, '');