-
Notifications
You must be signed in to change notification settings - Fork 11
IntegrateMy97
duantihua edited this page Feb 18, 2013
·
1 revision
整合My97DatePicker
本次整合的是4.72版本
脚本整合
scripts/my97/WdatePicker-4.72.js ==> WdatePicker.js
scripts/my97/My97DatePicker.htm ==> My97DatePicker.htm
scripts/my97/config.js ==> config.js
scripts/my97/calendar.js ==> calendar.js
国际化整合
scripts/i18n/en_US/WdatePicker.js ==> lang/en.js
scripts/i18n/zh_CN/WdatePicker.js ==> lang/zh-cn.js
scripts/i18n/zh_TW/WdatePicker.js ==> lang/zh-tw.js
css整合
themes/default/WdatePicker.css ==> skin/WdatePicker.css
themes/default/datepicker.css ==> skin/default/datepicker.css
themes/images/datepicker.gif ==> skin/datePicker.gif
themes/images/datepicker-images.gif==> skin/default/img.gif
05:var dpcontext=self.location.pathname.substring(0,self.location.pathname.substring(1).indexOf('/')+1);
08:$dpPath:dpcontext+"/static/scripts/my97/",
40:M(dpcontext + "/static/themes/default/WdatePicker.css")
增加函数转换locale(zh-cn=>zh_CN)
function normalizeLang(name){
name=name.replace('-','_');
var index=name.indexOf('_');
if(index>0) name = name.substring(0,index) + name.substring(index).toUpperCase();
return name;
}
44: $dp.realLang.name ==> normalizeLang($dp.realLang.name)
images/datepicker.gif ==> datePicker.gif
img.gif ==> images/datepicker-images.gif