From: Dion O. <dol...@us...> - 2005-12-22 21:06:47
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21334/magicajax/Core/script Modified Files: AjaxCallObject.js Log Message: Modified GetTargetElement function, so calendar clicks inside a user control are found (caused by .NET 1.1 calendar control bug) Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** AjaxCallObject.js 22 Dec 2005 01:15:20 -0000 1.35 --- AjaxCallObject.js 22 Dec 2005 21:06:36 -0000 1.36 *************** *** 186,189 **** --- 186,192 ---- break; } + // If no element found, try last id (fixes .NET 1.1 calendar control bug) + if (target == null && ids.length > 1) + target = document.getElementById(ids[ids.length-1]); return target; |