Changeset 58804 in spip-zone


Ignore:
Timestamp:
Feb 23, 2012, 8:34:15 PM (8 years ago)
Author:
bystrano@…
Message:

regle un probleme de compatibilite avec le plugin thickbox.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/ajax_nav/ajax_nav.js

    r58261 r58804  
    22  eqnull: false, evil: false, forin: true, immed: false, laxbreak: false, newcap: true,
    33  noarg:true, noempty: true, nonew: true, onevar: true, passfail: false, plusplus: true,
    4   regexp: false, undef: true, strict: true, white: false, smarttabs: true */
    5 /*global document:true, window:true, jQuery:true, $:true, History:true, prepareForAjax:true */
     4  regexp: true, undef: true, strict: true, white: false, smarttabs: true */
     5/*global document:true, window:true, jQuery:true, $:true, History:true */
    66
    77function AjaxNav() {
     
    136136                // on ne change rien pour les ctr-click etc.
    137137                if ( event.which === 2 || event.metaKey ) { return true; }
     138                if ($(this).hasClass('thickbox')) { return true; }
    138139                History.pushState(null, null, $(this).attr('href'));
    139140                event.preventDefault();
Note: See TracChangeset for help on using the changeset viewer.