Changeset 95730 in spip-zone


Ignore:
Timestamp:
Mar 3, 2016, 11:50:33 AM (5 years ago)
Author:
claude.codden@…
Message:

Oublie d'un ajout de la fonction TRIM !

Location:
_plugins_/spipcatchat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/spipcatchat/trunk/formulaires/spipcatchat_emoticons.html

    r95688 r95730  
    22<BOUCLE_EMOTICONS(DATA){source glob, #EVAL{_DIR_PLUGIN_SPIPCATCHAT}images/emoticons/#ENV{emoticon}/*.png}{valeur!==etiquette.png}>
    33#SET{grommeler,#VALEUR|match{#GET{spipcatchatregex}, Uims }|replace{\.png$,'',S} }
    4 [<img onclick="spipcatchatemoticon#ENV{fonction}('[:(#GET{grommeler}):]');" src="(#CHEMIN{#VALEUR})" alt="#GET{grommeler}" style="cursor: wait;width:20px;"/> ]
     4[<img onclick="spipcatchatemoticon[(#ENV{fonction}|trim)]('[:(#GET{grommeler}|trim):]');" src="(#CHEMIN{#VALEUR})" alt="[(#GET{grommeler}|trim)]" style="cursor: wait;width:20px;"/> ]
    55</BOUCLE_EMOTICONS>     
  • _plugins_/spipcatchat/trunk/javascript/spipcatchat.js.html

    r95687 r95730  
    245245{       
    246246#SET{spipcatchatregex2, [a-z A-Z 0-9]+.png$}
    247 <BOUCLE_EMOTICONS2(DATA){source glob, #ENV{url_plugin}images/emoticons/#ENV{theme_emo}/*.png}{valeur!==etiquette.png}>#SET{grommeler2,#VALEUR|match{#GET{spipcatchatregex2}, Uims }|replace{\.png$,'',S} }[texte = texte.replace(/[:(#GET{grommeler2}|trim):]/g,' <img src="(#CHEMIN{#VALEUR}|replace{../squelettes-dist/,'',S}|trim)" alt="#GET{grommeler2}" style="width:20px"/> ');]
     247<BOUCLE_EMOTICONS2(DATA){source glob, #ENV{url_plugin}images/emoticons/#ENV{theme_emo}/*.png}{valeur!==etiquette.png}>#SET{grommeler2,#VALEUR|match{#GET{spipcatchatregex2}, Uims }|replace{\.png$,'',S} }[texte = texte.replace(/[:(#GET{grommeler2}|trim):]/g,' <img src="(#CHEMIN{#VALEUR}|replace{../squelettes-dist/,'',S}|trim)" alt="[(#GET{grommeler2}|trim)]" style="width:20px"/> ');]
    248248</BOUCLE_EMOTICONS2>   
    249249        texte = texte.replace(/[\W]{1}lol[^\S]{1}/g,' <img src="#ENV{url_plugin}images/emoticons/#ENV{theme_emo}/smile.png" alt="Sourire" style="width:20px"/> ');
Note: See TracChangeset for help on using the changeset viewer.