Changeset 61570 in spip-zone


Ignore:
Timestamp:
May 22, 2012, 9:21:31 PM (7 years ago)
Author:
cedric@…
Message:

Evacuer un vieux truc de compat jQuery 1.2, timestamp, et version qui ne provoque plus de bug js dans le prive avec le plugin agenda

Location:
_plugins_/player/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/player/trunk/javascript/player_enclosure.js

    r61569 r61570  
    2222soundManager.url = player_data.soundManager_url;
    2323soundManager.nullURL = player_data.soundManager_nullURL;
    24 
    25 var seljQ = '@';
    26 if (jQuery.fn.jquery>="1.3.0")
    27         seljQ = '';
    2824
    2925jQuery(document).ready(function (){
     
    3935        flvTitles = new Array();
    4036
    41         var aff = jQuery("a["+seljQ+"rel*='enclosure']["+seljQ+"href$=mp3]").size();
     37        var aff = jQuery("a[rel*='enclosure'][href$=mp3]").size();
    4238
    4339        // lister les mp3 de la page
    44         jQuery("a["+seljQ+"rel*='enclosure']["+seljQ+"href$=mp3]").each(
     40        jQuery("a[rel*='enclosure'][href$=mp3]").each(
    4541                function (i){
    4642                        // we store mp3 links in an array
     
    7470        );
    7571
    76         jQuery("a["+seljQ+"rel='video']").each(
     72        jQuery("a[rel='video']").each(
    7773                function (i){
    7874                        // we store flv links in an array
     
    206202                file1 = file1.replace(/(.mp3)/g, ' ');
    207203                file1 = file1.replace(/(_|-)/g, ' ');
    208                 //jQuery("img["+seljQ+"alt='play']").attr()
     204                //jQuery("img[alt='play']").attr()
    209205                var taille = file1.length;
    210206                //$large_s = taille * 7; // pas bon. Laisser le navigateur decider
  • _plugins_/player/trunk/paquet.xml

    r60304 r61570  
    22        prefix="player"
    33        categorie="multimedia"
    4         version="2.1.0"
     4        version="2.1.1"
    55        etat="stable"
    6         compatibilite="[3.0.0-dev;3.0.*]"
     6        compatibilite="[3.0.0;3.0.*]"
    77        logo="prive/themes/spip/images/player-32.png"
    88        documentation="http://www.spip-contrib.net/Lecteur-Multimedia"
  • _plugins_/player/trunk/player_fonctions.php

    r60304 r61570  
    1515function player_call_js() {
    1616        $flux = "\n"
    17                 . '<script type="text/javascript" src="'.find_in_path('javascript/soundmanager/soundmanager2.js').'"></script>'
    18                 . '<script type="text/javascript" src="'.find_in_path('javascript/player_enclosure.js').'"></script>'."\n"
     17                . '<script type="text/javascript" src="'.timestamp(find_in_path('javascript/soundmanager/soundmanager2.js')).'"></script>'
     18                . '<script type="text/javascript" src="'.timestamp(find_in_path('javascript/player_enclosure.js')).'"></script>'."\n"
    1919                ;
    2020        return $flux;
Note: See TracChangeset for help on using the changeset viewer.