Changeset 2742 for trunk/template


Ignore:
Timestamp:
Oct 15, 2008, 6:51:03 AM (16 years ago)
Author:
rub
Message:

Resolved issue 0000893: 404 errors on template-common/lib/ui/i18n/ui.datepicker-en.js

Revert commit 2739

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/include/datepicker.inc.tpl

    r2739 r2742  
    11{* $Id$ *}
    2 {php}
    3   global $lang_info;
    4 
    5   $filename = get_root_url()."template-common/lib/ui/i18n/ui.datepicker-".$lang_info['code'].".js";
    6 
    7   $this->assign('exist_jquery_datepicker_lang', file_exists($filename));
    8   $this->assign('filename_jquery_datepicker_lang', $filename);
    9 {/php}
    10 
    112{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    123{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
    134{known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.datepicker.packed.js"}
     5{known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:"template-common/lib/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
    146{known_script id="datepicker.js" src=$ROOT_URL|@cat:"template-common/datepicker.js"}
    15 
    16 {if $exist_jquery_datepicker_lang}
    17 {known_script id="jquery.ui.datepicker-$lang_info.code" src=$filename_jquery_datepicker_lang}
    18 {/if}
    197
    208{html_head}
Note: See TracChangeset for help on using the changeset viewer.