Changeset 26664 for _plugins_/_stable_/barre_typo_v2
- Timestamp:
- 16.02.2009 11:24:47 (12 months ago)
- Files:
-
- 1 modified
-
_plugins_/_stable_/barre_typo_v2/inc/barre_20.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_stable_/barre_typo_v2/inc/barre_20.php
r26651 r26664 337 337 $ret .= $toolbox; 338 338 if (!$crayons && test_espace_prive() && !$forum) { 339 $ret .= '<script type="text/javascript"><!--'; 340 $ret .= ' 341 $(document).ready(function(){'; 339 $ret .= '<script type="text/javascript"><!-- 340 '; 342 341 if (test_espace_prive()) { 343 $ret .= ' 342 $ret .= '$(document).ready(function(){ 344 343 $('.$champ.').after("<div id=\"article_preview'.$num_barre.'\"></div>"); 345 344 $('.$champ.').before("<div id=\"article_stats'.$num_barre.'\"></div>"); 346 345 '; 347 $ret .= '$.ajaxSetup({timeout: 5000});'; // a partir de jquery 1.1.4, donc de SPIP 1.9.3348 346 $ret .= ' 349 347 $('.$champ.').keypress(function() { MajPreview('.$num_barre.',"'.$champ.'") }); 350 348 $('.$champ.').select(function() { MajStats('.$num_barre.',"'.$champ.'") }); 351 $('.$champ.').click(function() { MajStats('.$num_barre.',"'.$champ.'") });'; 352 } 353 $ret .= '}); 354 //--></script>'; 349 $('.$champ.').click(function() { MajStats('.$num_barre.',"'.$champ.'") }); 350 });'; 351 } 352 $ret .= ' 353 // --></script>'; 355 354 } else { 356 355 $ret .= ($num_barre > 1) ? '' :
