[pLog-svn] r4801 - plog/trunk/class/template/smarty/plugins
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed Feb 21 08:33:33 EST 2007
Author: oscar
Date: 2007-02-21 08:33:33 -0500 (Wed, 21 Feb 2007)
New Revision: 4801
Modified:
plog/trunk/class/template/smarty/plugins/function.location_display.php
Log:
Another fix for IE, apparently an object cannot have the same name as a the value of an 'id' attribute of a tag.
Modified: plog/trunk/class/template/smarty/plugins/function.location_display.php
===================================================================
--- plog/trunk/class/template/smarty/plugins/function.location_display.php 2007-02-21 13:17:32 UTC (rev 4800)
+++ plog/trunk/class/template/smarty/plugins/function.location_display.php 2007-02-21 13:33:33 UTC (rev 4801)
@@ -31,13 +31,14 @@
isset( $params["height"] ) ? $height = $params["height"] : $height = 390;
// random name for the object, in case we've got more than one per page
- $o = "o_".md5(time);
+ $o = "o_".md5(time());
+ $oo = "o".$o;
$code = "<script type=\"text/javascript\" src=\"{$baseUrl}/js/yui/yahoo/yahoo-min.js\"></script>";
$code .= "<script type=\"text/javascript\" src=\"{$baseUrl}/js/yui/dom/dom-min.js\"></script>";
$code .= "<script type=\"text/javascript\" src=\"{$baseUrl}/js/yui/event/event-min.js\"></script>";
$code .= "<a id=\"$o\" href=\"javascript:void(0);\">".$location->getDescription()."</a>";
- $code .= "<script type=\"text/javascript\">$o=new Lifetype.UI.Overlay({url:'".$indexUrl."?op=locationDisplay&width=".$width."&height=".$height."&locId=".$location->getId()."',width:".$width.",height:".$height.",context:'$o',showCloseButton:true});</script>";
+ $code .= "<script type=\"text/javascript\">$oo=new Lifetype.UI.Overlay({url:'".$indexUrl."?op=locationDisplay&width=".$width."&height=".$height."&locId=".$location->getId()."',width:".$width.",height:".$height.",context:'$o',showCloseButton:true});</script>";
return( $code );
}
More information about the pLog-svn
mailing list