Changeset 18630 for trunk/include/template.class.php
- Timestamp:
- Oct 12, 2012, 10:32:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r17675 r18630 543 543 $minw=null; 544 544 $minh=null; 545 545 546 546 if (isset($params['crop'])) 547 547 { … … 937 937 'jquery' => 'themes/default/js/jquery.min.js', 938 938 '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', 940 940 ); 941 941 … … 1154 1154 $required_ids = array('jquery'); 1155 1155 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 ) 1157 1164 { 1158 1165 if ( !isset(self::$ui_core_dependencies[$id]) ) … … 1162 1169 $script->path = dirname(self::$known_paths['jquery.ui'])."/$id.min.js"; 1163 1170 } 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 }1171 1171 1172 1172 foreach ($required_ids as $required_id) … … 1180 1180 private function load_known_required_script($id, $load_mode) 1181 1181 { 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 ) 1183 1183 { 1184 1184 $this->add($id, $load_mode, array(), null);
Note: See TracChangeset
for help on using the changeset viewer.