[pLog-svn] r5543 - plog/branches/lifetype-1.2/js/ui

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Jun 13 16:48:35 EDT 2007


Author: oscar
Date: 2007-06-13 16:48:35 -0400 (Wed, 13 Jun 2007)
New Revision: 5543

Modified:
   plog/branches/lifetype-1.2/js/ui/common.js
Log:
Small improvement to the getFlashPlayerHTML() function.

Modified: plog/branches/lifetype-1.2/js/ui/common.js
===================================================================
--- plog/branches/lifetype-1.2/js/ui/common.js	2007-06-13 20:46:55 UTC (rev 5542)
+++ plog/branches/lifetype-1.2/js/ui/common.js	2007-06-13 20:48:35 UTC (rev 5543)
@@ -362,7 +362,9 @@
  */
 function getFlashPlayerHTML( url, height, width ) 
 {
-    var playerUrl = plogBaseUrl + "/flash/mp3player/mp3player.swf";
+	var baseUrl = TinyMCE.baseURL.substring(0, TinyMCE.baseURL.indexOf("/js/tinymce",0));
+	var playerUrl = baseUrl + "/flash/mp3player/mp3player.swf";
+	
 	var htmlCode = "<object data=\"" + playerUrl + "\" type=\"application/x-shockwave-flash\" width=\"" + width +"\" height=\"" + height + "\" class=\"ltPlayer\">"+
 		"<param name=\"quality\" value=\"best\" />"+
 		"<param name=\"bgcolor\" value=\"#FFFFFF\" />" +



More information about the pLog-svn mailing list