Don't reset clock when moving in calendar.
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2004-04-27 Michal Cihar <michal@cihar.com>
|
||||
* calendar.php, libraries/tbl_change.js: Don't reset clock when moving in
|
||||
calendar.
|
||||
|
||||
2004-04-27 Garvin Hicking <pma@supergarv.de>
|
||||
* footer.inc.php: Fixed bug #942316 - Consistent window layout for
|
||||
query window.
|
||||
|
@@ -22,5 +22,6 @@ var day_names = new Array("<?php echo implode('","', $day_of_week); ?>");
|
||||
</head>
|
||||
<body onload="initCalendar();">
|
||||
<div id="calendar_data"></div>
|
||||
<div id="clock_data"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -118,6 +118,7 @@ var year;
|
||||
var hour;
|
||||
var minute;
|
||||
var second;
|
||||
var clock_set = 0;
|
||||
|
||||
/**
|
||||
* Opens calendar window.
|
||||
@@ -272,16 +273,28 @@ function initCalendar() {
|
||||
|
||||
str += "</tr></table>";
|
||||
|
||||
cnt.innerHTML = str;
|
||||
|
||||
// Should we handle time also?
|
||||
if (window.opener.dateType != 'date') {
|
||||
if (window.opener.dateType != 'date' && !clock_set) {
|
||||
|
||||
if (document.getElementById) {
|
||||
cnt = document.getElementById("clock_data");
|
||||
} else if (document.all) {
|
||||
cnt = document.all["clock_data"];
|
||||
}
|
||||
|
||||
str = '';
|
||||
str += '<form class="clock">';
|
||||
str += '<input id="hour" type="text" size="2" maxlength="2" value="' + formatNum2(hour) + '" />:';
|
||||
str += '<input id="minute" type="text" size="2" maxlength="2" value="' + formatNum2(minute) + '" />:';
|
||||
str += '<input id="second" type="text" size="2" maxlength="2" value="' + formatNum2(second) + '" />';
|
||||
str += '</form>';
|
||||
}
|
||||
|
||||
cnt.innerHTML = str;
|
||||
clock_set = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user