[Hastymail-cvs] SF.net SVN: hastymail:[1122] trunk/hastymail2/plugins/js_help
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2009-10-30 06:06:01
|
Revision: 1122 http://hastymail.svn.sourceforge.net/hastymail/?rev=1122&view=rev Author: sailfrog Date: 2009-10-30 06:05:49 +0000 (Fri, 30 Oct 2009) Log Message: ----------- misc fixes to the js_help plugin Modified Paths: -------------- trunk/hastymail2/plugins/js_help/ajax.php trunk/hastymail2/plugins/js_help/work.php Modified: trunk/hastymail2/plugins/js_help/ajax.php =================================================================== --- trunk/hastymail2/plugins/js_help/ajax.php 2009-10-30 06:00:35 UTC (rev 1121) +++ trunk/hastymail2/plugins/js_help/ajax.php 2009-10-30 06:05:49 UTC (rev 1122) @@ -36,7 +36,7 @@ } } if (!$res) { - //$res = 'This is a plugin option. These are not supported yet'; + $res = 'Probably a plugin option... <br />These are not supported yet'; } return $res; } Modified: trunk/hastymail2/plugins/js_help/work.php =================================================================== --- trunk/hastymail2/plugins/js_help/work.php 2009-10-30 06:00:35 UTC (rev 1121) +++ trunk/hastymail2/plugins/js_help/work.php 2009-10-30 06:05:49 UTC (rev 1122) @@ -35,6 +35,10 @@ document.getElementById("js_help_div").style.display = "none"; targ = get_target(e); if (targ.className == "opt_leftcol") { + if (jh_timeout_id) { + clearTimeout(jh_timeout_id); + jh_timeout_id = 0; + } targ.style.fontWeight = "normal"; targ.style.backgroundColor = "transparent"; targ.style.border = "none"; @@ -58,7 +62,7 @@ if (e) { targ = get_target(e); if (targ.className == "opt_leftcol") { - if (targ.firstChild.nodeType == 3) { + if (targ.firstChild.nodeType == 3 && targ.innerHTML) { targ.style.fontWeight = "bold"; targ.style.backgroundColor = "#f5f5f5"; targ.style.border = "solid 1px #ccc"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |