Dotclear

Changeset 1700:46ec5d1c6f0d for admin


Ignore:
Timestamp:
09/03/13 16:54:05 (11 years ago)
Author:
kevin@…
Branch:
Ticket #1452
Children:
1701:81665c0f2d15, 1702:15ef8101c7c7
Message:

Ticket #1452
Permet d'utiliser les ancres pour afficher les onglets dans l'administration.
Les onglets modifie l'url comme les ancres ( C'est des ancres, en fait... )
script suplémentaire pour les vieux ie 6..7

Location:
admin/js
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/jquery/jquery.pageTabs.js

    r1223 r1700  
    1616     this.createList(); 
    1717     this.showDiv(index); 
     18     var pageTabs = this; 
     19      
     20     window.onhashchange = function (event) { 
     21          pageTabs.showDiv(document.location.hash.split('#').join('')); 
     22    } 
    1823}; 
    1924 
     
    4146                    $(a).html(this.title); 
    4247                    this.title = ''; 
    43                     a.href = '#'; 
    4448                    a.fn = This.showDiv; 
    4549                    a.index = this.id || i; 
     50                    a.href = '#'+a.index; 
    4651                    li.id = "part-tabs-"+a.index; 
    4752                    a.obj = This; 
    48                     jQuery(a).click(function() { this.fn.call(this.obj,this.index); return false; }); 
    4953                    li.appendChild(a); 
    5054                    This.list.appendChild(li); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map