diff --git a/public/js/vroom.js b/public/js/vroom.js index d59a4cb..5405a2d 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -32,6 +32,9 @@ var itemPerPage = 20; // Will store the global webrtc object var webrtc = undefined; +// Mark current page link as active +$('#lnk_' + page).addClass('active'); + // Localize the strings we need $.ajax({ url: rootUrl + 'localize/' + currentLang, diff --git a/templates/default/js_common.html.ep b/templates/default/js_common.html.ep index 95eeadc..9df354d 100644 --- a/templates/default/js_common.html.ep +++ b/templates/default/js_common.html.ep @@ -4,6 +4,7 @@ var rootUrl = '<%= $url %>'; var currentLang = '<%= $self->languages %>'; var api_key = '<%= ($self->session('key')) ? $self->session('key') : '' %>'; + var page = '<%= stash('page') ? stash('page') : "" %>'; var roomName; <% diff --git a/templates/default/public_toolbar.html.ep b/templates/default/public_toolbar.html.ep index 049b10e..159e5f7 100644 --- a/templates/default/public_toolbar.html.ep +++ b/templates/default/public_toolbar.html.ep @@ -11,20 +11,20 @@