From: <ni...@us...> - 2007-09-03 17:40:18
|
Update of /cvsroot/tikiwiki/tiki/lib/mypage In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv4087/lib/mypage Modified Files: mypagelib.php Log Message: [FIX] mypage: add a hack that give components the ability to call a javascript at windoo creation Index: mypagelib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/mypage/mypagelib.php,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- mypagelib.php 30 Aug 2007 19:14:54 -0000 1.59 +++ mypagelib.php 3 Sep 2007 17:40:08 -0000 1.60 @@ -864,6 +864,10 @@ } $js.=$v.".show();\n"; + + if (is_callable(array($comp, 'getOnOpenJSCode'))) { + $js.=$comp->getOnOpenJSCode().";\n"; + } return $js; } |