Ignore:
Timestamp:
Oct 12, 2012, 10:32:30 PM (12 years ago)
Author:
rvelices
Message:

feature 2771: upgrade jquery from 1.7.2 to 1.8.2 and jquery.ui from 1.8.16 to 1.9.0
Attention plugins: jquery ui effect script ids change when using combine_script because file names changed ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r17675 r18630  
    543543    $minw=null;
    544544    $minh=null;
    545    
     545
    546546    if (isset($params['crop']))
    547547    {
     
    937937      'jquery' => 'themes/default/js/jquery.min.js',
    938938      'jquery.ui' => 'themes/default/js/ui/minified/jquery.ui.core.min.js',
    939       'jquery.effects' => 'themes/default/js/ui/minified/jquery.effects.core.min.js',
     939      'jquery.ui.effect' => 'themes/default/js/ui/minified/jquery.ui.effect.min.js',
    940940    );
    941941
     
    11541154      $required_ids = array('jquery');
    11551155
    1156       if ( strncmp($id, 'jquery.ui.', 10)==0 )
     1156      if ( strncmp($id, 'jquery.ui.effect-', 17)==0 )
     1157      {
     1158        $required_ids = array('jquery', 'jquery.ui.effect');
     1159
     1160        if ( empty($script->path) )
     1161          $script->path = dirname(self::$known_paths['jquery.ui.effect'])."/$id.min.js";
     1162      }
     1163      elseif ( strncmp($id, 'jquery.ui.', 10)==0 )
    11571164      {
    11581165        if ( !isset(self::$ui_core_dependencies[$id]) )
     
    11621169          $script->path = dirname(self::$known_paths['jquery.ui'])."/$id.min.js";
    11631170      }
    1164       elseif ( strncmp($id, 'jquery.effects.', 15)==0 )
    1165       {
    1166         $required_ids = array('jquery', 'jquery.effects');
    1167 
    1168         if ( empty($script->path) )
    1169           $script->path = dirname(self::$known_paths['jquery.effects'])."/$id.min.js";
    1170       }
    11711171
    11721172      foreach ($required_ids as $required_id)
     
    11801180  private function load_known_required_script($id, $load_mode)
    11811181  {
    1182     if ( isset(self::$known_paths[$id]) or strncmp($id, 'jquery.ui.', 10)==0 or strncmp($id, 'jquery.effects.', 15)==0 )
     1182    if ( isset(self::$known_paths[$id]) or strncmp($id, 'jquery.ui.', 10)==0 )
    11831183    {
    11841184      $this->add($id, $load_mode, array(), null);
Note: See TracChangeset for help on using the changeset viewer.