Justin
Junior Member
Posts: 6
Registered: 10/2/2006
Location: San Diego
Member Is Offline
|
| posted on 10/2/2006 at 01:58 PM |
|
|
How To Get The Calendar To Center
Currently I am using Calendar and love it. Two things bother me though. Presently the window does not open up in the center of the window, it seems to
open to the middle left.
Secondly I would like to have a link under the calendar that says Today, which when clicked simply inserts the current date into the field. THis is
merly a shortcut and convince feature.
Thanks much!
|
|
|
Justin
Junior Member
Posts: 6
Registered: 10/2/2006
Location: San Diego
Member Is Offline
|
| posted on 10/25/2006 at 04:14 PM |
|
|
Here is how to center the calendar popup window:
Modify calendar_popup.js at about line 38 to the following:
leftPos = 0
topPos = 0
if (screen) {
leftPos = (screen.width / 2) - (200 / 2);
topPos = (screen.height / 2) - (203 / 2);
}
var obj_calwindow = window.open(
'/includes/calendar.html?datetime=' + this.dt_current.valueOf()+ '&id=' + this.id,
'Calendar', 'width=200,height='+(this.time_comp ? 215 : 190)+
',status=no,resizable=no,top=' + topPos + ',left=' + leftPos + ',dependent=yes,alwaysRaised=yes'
);
Done. :) I would include this in the next realease, really a nice feature.
|
|
|
|