Changeset 39365 in spip-zone


Ignore:
Timestamp:
Jul 19, 2010, 4:06:05 PM (9 years ago)
Author:
prigent.yohann@…
Message:

Pour raisons de perf, on inclut la chaine de langue en js inline

Location:
_plugins_/comments/comments-200
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/comments/comments-200/comments_pipelines.php

    r39363 r39365  
    170170
    171171function comments_insert_head ($flux) {
    172         if (lire_config('comments/comments_fil') == 'one-thread')
    173                 $flux .= '<script type="text/javascript">'.recuperer_fond('javascript/thread-move.js').'</script>';
     172        if (lire_config('comments/comments_fil') == 'one-thread') {
     173                $flux .= '<script type="text/javascript" src="'.chemin('javascript/thread-move.js').'"></script>';
     174                $flux .= '<script type="text/javascript">';
     175                $flux .= '$(document).ready(function(){';
     176                $flux .= '$("p.repondre").click(function(){';
     177                $flux .= '$(".comment-form h2").replaceWith("<h2>'._T('public:repondre_message').'</h2>")';
     178                $flux .= '});';
     179                $flux .= '});;';
     180                $flux .= '</script>';
     181        }
    174182        return $flux;
    175183}
Note: See TracChangeset for help on using the changeset viewer.