* updated zui.

* added lang attribute to the html tag.
 * bootbox can match client language by read lang attribute of the html tag.
This commit is contained in:
Catouse
2014-05-03 17:09:12 +08:00
parent f32c8a6c04
commit ac62124659
3 changed files with 2 additions and 34 deletions

View File

@@ -8,38 +8,6 @@ if($config->debug)
}
?>
<script language='javascript'>
/**
* Format date to a string
*
* @param string format
* @return string
*/
Date.prototype.format = function(format)
{
var date =
{
"M+": this.getMonth() + 1,
"d+": this.getDate(),
"h+": this.getHours(),
"m+": this.getMinutes(),
"s+": this.getSeconds(),
"q+": Math.floor((this.getMonth() + 3) / 3),
"S+": this.getMilliseconds()
};
if (/(y+)/i.test(format))
{
format = format.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length));
}
for (var k in date)
{
if (new RegExp("(" + k + ")").test(format))
{
format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? date[k] : ("00" + date[k]).substr(("" + date[k]).length));
}
}
return format;
}
$(function()
{
$.fn.fixedDate = function()

View File

@@ -8,7 +8,7 @@ $langTheme = $themeRoot . 'lang/' . $app->getClientLang() . '.css';
$clientTheme = $this->app->getClientTheme();
?>
<!DOCTYPE html>
<html>
<html lang='<?php echo $app->getClientLang();?>'>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>

File diff suppressed because one or more lines are too long