Calendar is an external library - if you want to improve its basic functions.
However, the parameters governing the date field in CB is controlled in the comprofiler.class.php file (around line 2822).
I changed:
[code:1]$return = '<input class="inputbox"'.$vardisabled.' mosReq="'.$oReq.'" mosLabel="'.getLangDefinition($oLabel).'" type="text" name="' . $oName .'" readonly="readonly" id="' . $oName . '" value="' . $oValue . '" />'."\n";[/code:1]
to[code:1]$return = '<input class="inputbox" mosReq="'.$oReq.'" mosLabel="'.getLangDefinition($oLabel).'" type="text" name="' . $oName .'" id="' . $oName . '" value="' . $oValue . '" />'."\n";[/code:1]
This disabled the readonly / disable parameters. So, now, my calendar is editable and has a popup calendar on single-click. This works pretty well. However, I'd like to have a simple text field with a calendar button next to it like in these pages -
www.dynarch.com/demos/jscalendar/simple-1.html and
www.dynarch.com/demos/jscalendar/doc/html/reference.html#node_sec_3.1.1
I tried adding the button, but could not get the button to popup the calendar. If anyone manages to get the button working, please post here.
Regards,
-V