Revision 0467b6cd snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/okeanos.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/okeanos.js
392 392

  
393 393
// in a page with tabs, allow navigation with hash tags
394 394
ui.hashTabs = function(tabsEl, sectionEl){
395
    var hash = window.location.hash;
396
    if ($(hash).length<=0){
397
        return;
398
    }
399
    tabsEl.find('a').removeClass('active');
400
    var link = tabsEl.find('a[href="'+hash+'"]');
401
    link.addClass('active');
402
    ui.tabsSection(link, sectionEl);
395

  
403 396

  
404 397
}
405 398

  

Also available in: Unified diff