[pLog-svn] r5835 - in plog/trunk: js/ui/pages templates/admin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Fri Aug 17 17:29:16 EDT 2007


Author: oscar
Date: 2007-08-17 17:29:16 -0400 (Fri, 17 Aug 2007)
New Revision: 5835

Modified:
   plog/trunk/js/ui/pages/templateeditor.js
   plog/trunk/templates/admin/edittemplate_table.template
Log:
Image files can now be viewed again, in a new window if javascript is enabled.


Modified: plog/trunk/js/ui/pages/templateeditor.js
===================================================================
--- plog/trunk/js/ui/pages/templateeditor.js	2007-08-17 21:18:22 UTC (rev 5834)
+++ plog/trunk/js/ui/pages/templateeditor.js	2007-08-17 21:29:16 UTC (rev 5835)
@@ -45,7 +45,6 @@
 	Lifetype.UI.Pages.TemplateEditor.copySourceFile	 = null;
 }
 
-
 Lifetype.UI.Pages.TemplateEditor.copyTemplateFileTo = function( sourceFile )
 {
 	Lifetype.UI.Pages.TemplateEditor.copySourceFile = sourceFile;

Modified: plog/trunk/templates/admin/edittemplate_table.template
===================================================================
--- plog/trunk/templates/admin/edittemplate_table.template	2007-08-17 21:18:22 UTC (rev 5834)
+++ plog/trunk/templates/admin/edittemplate_table.template	2007-08-17 21:29:16 UTC (rev 5835)
@@ -39,7 +39,7 @@
       {$file.name}
      </a>
     {elseif $file.isImage}
-     <a href="javascript:Lifetype.UI.Pages.TemplateEditor.openImagePreviewWindow('{$url->getUrl($file.url)}');">
+     <a href="{$file.url}" onClick="Lifetype.UI.Misc.openInNewWindow(this);">
       <img src="imgs/admin/icon_image-16.png" />
 	   {$file.name}
 	  </a>
@@ -81,7 +81,7 @@
       <img src="imgs/admin/icon_empty-16.png" />
      {/if}
      {if $file.isImage}
-	   <a href="javascript:Lifetype.UI.Pages.TemplateEditor.openImagePreviewWindow('{$url->getUrl($file.url)}');">
+	   <a href="{$file.url}" onClick="Lifetype.UI.Misc.openInNewWindow(this);">
 		<img src="imgs/admin/icon_image-16.png" alt="Preview" />
 	   </a>      
      {/if}         



More information about the pLog-svn mailing list