Changeset 34442 in spip-zone


Ignore:
Timestamp:
Jan 14, 2010, 11:07:47 AM (10 years ago)
Author:
patfr@…
Message:

Déployer un bloc dépliable grâce à une ancre. utiliser : #ongletNN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/couteau_suisse/outils/decoupe.js

    r25682 r34442  
    5353
    5454function get_onglet(url) {
    55  tab=url.match(/[?&]onglet=([0-9]*)/);
     55 tab=url.search.match(/[?&]onglet=([0-9]*)/) || url.hash.match(/#onglet([0-9]*)/);
    5656 if (tab==null) return false;
    5757 return tab[1];
    5858}
    5959
    60 var onglet_get = get_onglet(window.location.search);
     60var onglet_get = get_onglet(window.location);
Note: See TracChangeset for help on using the changeset viewer.