Author: Jonathan.Wage
Date: 2010-02-10 17:49:57 +0100 (Wed, 10 Feb 2010)
New Revision: 27830
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/modules/sympal_edit_slot/templates/save_slotsSuccess.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing issue with slot saving
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/modules/sympal_edit_slot/templates/save_slotsSuccess.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/modules/sympal_edit_slot/templates/save_slotsSuccess.php
2010-02-10 16:44:24 UTC (rev 27829)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/modules/sympal_edit_slot/templates/save_slotsSuccess.php
2010-02-10 16:49:57 UTC (rev 27830)
@@ -6,7 +6,7 @@
<?php /* Updated rendered value of successfully content slots and removed red
border */ ?>
<?php foreach ($contentSlots as $contentSlot): ?>
- $('#sympal_content_slot_<?php echo $contentSlot->getId() ?>
.value').html('<?php echo str_replace("\n", '\n',
addslashes($contentSlot->render())) ?>');
+ $('#sympal_content_slot_<?php echo $contentSlot->getId() ?>
.value').html('<?php echo str_replace("'", "\\'", str_replace("\n", ' ',
addslashes($contentSlot->render()))); ?>');
$('#sympal_content_slot_<?php echo $contentSlot->getId() ?> .editor input,
#sympal_content_slot_<?php echo $contentSlot->getId() ?> .editor
textarea').css('border', '1px solid #ccc');
<?php endforeach; ?>
--
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.