Author: bshaffer
Date: 2010-03-22 21:51:22 +0100 (Mon, 22 Mar 2010)
New Revision: 28683

Modified:
   
plugins/csDoctrineActAsAttachablePlugin/branches/1.4/modules/csAttachable/templates/_attachments.php
Log:
do not add prototype.js file when jQuery helper is being used!

Modified: 
plugins/csDoctrineActAsAttachablePlugin/branches/1.4/modules/csAttachable/templates/_attachments.php
===================================================================
--- 
plugins/csDoctrineActAsAttachablePlugin/branches/1.4/modules/csAttachable/templates/_attachments.php
        2010-03-22 18:19:58 UTC (rev 28682)
+++ 
plugins/csDoctrineActAsAttachablePlugin/branches/1.4/modules/csAttachable/templates/_attachments.php
        2010-03-22 20:51:22 UTC (rev 28683)
@@ -1,5 +1,9 @@
 <?php use_helper($javascriptHelper) ?>
-<?php $sf_response->addJavascript('/sfProtoculousPlugin/js/prototype.js'); ?>
+
+<?php if ($javascriptHelper == 'Javascript'): ?>
+  <?php $sf_response->addJavascript('/sfProtoculousPlugin/js/prototype.js'); 
?>  
+<?php endif ?>
+
 <?php 
$sf_response->addStylesheet('/csDoctrineActAsAttachablePlugin/css/attachments.css');
 ?>
 
 <div id='attachments_display'>

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to