Changeset 6269 in spip-zone


Ignore:
Timestamp:
Oct 14, 2006, 2:03:35 PM (14 years ago)
Author:
cedric@…
Message:

"rendre compatible ajax_callback avec la 1,9,1"

Location:
_plugins_/_dev_/ajax_callback
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_dev_/ajax_callback/head.php

    r5695 r6269  
    11<?php
     2function ajaxcallback_insert_head($flux){
     3        if (!defined(_DIR_JAVASCRIPT)){
     4                $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
     5                define('_DIR_PLUGIN_AJAXCALLBACK',(_DIR_PLUGINS.end($p)));
     6                $flux .= '<script src="'._DIR_PLUGIN_AJAXCALLBACK.'/layer.js" type="text/javascript"></script>';
     7        }
     8        else    $flux .= '<script src="'._DIR_JAVASCRIPT.'layer.js" type="text/javascript"></script>';
    29
    3 function ajaxcallback_insert_head($flux){
    4                         return $flux.
    5                         '<script src="'._DIR_JAVASCRIPT.'layer.js" type="text/javascript"></script>'.
    6                         '<script src="'.find_in_path('ajaxCallback.js').'" type="text/javascript"></script>';
    7         }
     10        return $flux.'<script src="'.find_in_path('ajaxCallback.js').'" type="text/javascript"></script>';
     11}
    812
    913?>
Note: See TracChangeset for help on using the changeset viewer.