Changeset 27125 in spip-zone


Ignore:
Timestamp:
Mar 7, 2009, 6:59:52 AM (10 years ago)
Author:
paladin@…
Message:

si besoin, rendre compatible avec anciennes versions de jQuery (SPIP 192x)

Location:
_plugins_/_stable_/socialtags
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/socialtags/fonds/cfg_socialtags.html

    r27123 r27125  
    4444
    4545<script type='text/javascript'>
    46 //<![CDATA[
     46//<![CDATA[ 
    4747        jQuery.extend({
    4848                sc_cocher_decocher_tout: function(b) {
  • _plugins_/_stable_/socialtags/plugin.xml

    r26878 r27125  
    77        </auteur>
    88        <version>
    9         0.6
     9        0.7
    1010        </version>
    1111        <etat>
  • _plugins_/_stable_/socialtags/socialtags.js.html

    r26871 r27125  
    1212var socialtags = [(#CONFIG{socialtags/tags}|socialtags_json)];
    1313var title = $('title').text() ||'';
    14 var description = ($('meta[name=description]').attr('content') || '').substr(0,250);
    15 var cano = $('link[rel=canonical]')[0];
     14// [@attr] style selectors removed in jQuery 1.3 (voir http://docs.jquery.com/Selectors)
     15// si besoin, rendre compatible avec anciennes versions de jQuery (SPIP 192x)
     16var jqss = (jQuery.fn.jquery <= '1.2.6') ? '@' : '';
     17var description = ($('meta['+jqss+'name=description]').attr('content') || '').substr(0,250);
     18var cano = $('link['+jqss+'rel=canonical]')[0];
    1619var url = cano ? cano.href : document.location.href;
    1720var ul = $('<ul><\/ul>');
Note: See TracChangeset for help on using the changeset viewer.