Dotclear


Ignore:
Timestamp:
09/22/13 16:17:26 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Rewrite pageTabs plugin
Remove dependency with hashchange plugin
Fix issue : when click on tab focus must not follow anchor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r2005 r2010  
    649649          '<script type="text/javascript">'."\n". 
    650650          "//<![CDATA[\n". 
    651           "\$(function() {\n". 
    652                "    pagetabs = \$.pageTabs(".$default.");\n". 
    653                "});\n". 
    654 "\n//]]>\n". 
    655 "</script>\n". 
    656           "<!--[if lt IE 8]>\n". 
    657           self::jsLoad('js/ie7/ie7-hashchange.js'). 
    658           '<script type="text/javascript">'."\n". 
    659           "//<![CDATA[\n". 
    660           "\$(function() {". 
    661                "\$(window).hashchange( function(){". 
    662                     "pagetabs.showDiv(document.location.hash.split('#').join(''));". 
    663                "});". 
    664           "});". 
     651          '$(function() {'."\n". 
     652          '$.pageTabs(".$default.");'."\n". 
     653          '});'."\n". 
    665654          "\n//]]>\n". 
    666           "</script>\n". 
    667           "<![endif]-->\n"; 
    668 } 
     655          "</script>\n"; 
     656     } 
    669657 
    670658public static function jsModal() 
Note: See TracChangeset for help on using the changeset viewer.

Sites map