Changeset 5392 in spip-zone for _plugins_/-jQuery/head.php


Ignore:
Timestamp:
Sep 15, 2006, 3:09:37 PM (15 years ago)
Author:
fil@…
Message:

up jquery + reparation du plugin thickbox (toujours en version 1 de thickbox)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/-jQuery/head.php

    r5282 r5392  
    22
    33function JQuery_insert_head($flux){
    4                 //if (_request('jqdb')!==NULL)
    5                         $js = '<script src="'.find_in_path('jquery.lite.213.js').'" type="text/javascript"></script>';
     4                if (!_request('jqdb'))
     5                        $js = '<script src="'.find_in_path('jquery-1.0.1.pack.js').'" type="text/javascript"></script>';
     6                else
     7                        $js = '<script src="'.find_in_path('jquery-1.0.1.js').'" type="text/javascript"></script>';
     8
    69                        $js .= '<script src="'.find_in_path('form.js').'" type="text/javascript"></script>';
    7                 //else
    8                 //      $js = '<script src="'.find_in_path('jquery.pack.213.js').'" type="text/javascript"></script>';
    910                if (strpos($flux,'<head')!==FALSE)
    1011                        return preg_replace('/(<head[^>]*>)/i', "\n\$1".$js, $flux, 1);
Note: See TracChangeset for help on using the changeset viewer.