Better return value formatting.
This commit is contained in:
@@ -5,8 +5,11 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2004-04-19 Michal Cihar <michal@cihar.com>
|
||||||
|
* libraries/tbl_change.js: Better return value formatting.
|
||||||
|
|
||||||
2004-04-18 Michal Cihar <michal@cihar.com>
|
2004-04-18 Michal Cihar <michal@cihar.com>
|
||||||
* libraries/tbl_change.js: Fixed caledar behavior for DATE fields.
|
* libraries/tbl_change.js: Fixed caledar behaviour for DATE fields.
|
||||||
* libraries/auth/cookie.auth.lib.php: Fix LoginCookieValidity behaviour.
|
* libraries/auth/cookie.auth.lib.php: Fix LoginCookieValidity behaviour.
|
||||||
* libraries/tbl_change.js, tbl_change.php: Add support for DATETIME.
|
* libraries/tbl_change.js, tbl_change.php: Add support for DATETIME.
|
||||||
|
|
||||||
|
@@ -209,11 +209,17 @@ function initCalendar() {
|
|||||||
str += "</tr><tr>";
|
str += "</tr><tr>";
|
||||||
dayInWeek = 0;
|
dayInWeek = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
dispmonth = 1 + month;
|
dispmonth = 1 + month;
|
||||||
|
|
||||||
|
yearstring = (year < 1000 ? year < 100 ? year < 10 ? '000' : '00' : '0' : '') + year;
|
||||||
|
monthstring = (dispmonth < 10 ? '0' : '') + dispmonth;
|
||||||
|
daystring = (i < 10 ? '0' : '') + i;
|
||||||
|
|
||||||
if (window.opener.dateType == 'datetime' || window.opener.dateType == 'date') {
|
if (window.opener.dateType == 'datetime' || window.opener.dateType == 'date') {
|
||||||
actVal = year + "-" + dispmonth + "-" + i;
|
actVal = yearstring + "-" + monthstring + "-" + daystring;
|
||||||
} else {
|
} else {
|
||||||
actVal = "" + (year < 1000 ? year < 100 ? year < 10 ? '000' : '00' : '0' : '') + year + (dispmonth < 10 ? '0' : '') + dispmonth + (i < 10 ? '0' : '') + i;
|
actVal = "" + yearstring + monthstring + daystring;
|
||||||
}
|
}
|
||||||
if (i == day) {
|
if (i == day) {
|
||||||
style = ' class="selected"';
|
style = ' class="selected"';
|
||||||
|
Reference in New Issue
Block a user