Author: weaverryan
Date: 2010-01-18 05:43:52 +0100 (Mon, 18 Jan 2010)
New Revision: 26802

Modified:
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/web/js/editor.js
Log:
[1.4][sfSympalPlugin][1.0] Fixing possibility of the editor being confused 
about its state and not properly hiding on save and preview. This
was happening in certain specific situations on one of my projects.


Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/web/js/editor.js
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/web/js/editor.js
      2010-01-18 04:21:42 UTC (rev 26801)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/web/js/editor.js
      2010-01-18 04:43:52 UTC (rev 26802)
@@ -85,8 +85,8 @@
       });
     });
     // Toggle the editor and value states
-    $('.sympal_content_slot .editor').toggle();
-    $('.sympal_content_slot .value').toggle();
+    $('.sympal_content_slot .editor').hide();
+    $('.sympal_content_slot .value').show();
 
     // Update the inline edit bar buttons and links
     $('.toggle_edit_mode').show();
@@ -110,8 +110,8 @@
       });
     });
     // Toggle the editor and value states
-    $('.sympal_content_slot .editor').toggle();
-    $('.sympal_content_slot .value').toggle();
+    $('.sympal_content_slot .editor').hide();
+    $('.sympal_content_slot .value').show();
 
     // Update the inline edit bar buttons and links
     $('.toggle_edit_mode').show();
@@ -123,8 +123,8 @@
 
   $('.sympal_disable_edit_mode').click(function() {
     // Toggle the editor and value states
-    $('.sympal_content_slot .editor').toggle();
-    $('.sympal_content_slot .value').toggle();
+    $('.sympal_content_slot .editor').hide();
+    $('.sympal_content_slot .value').show();
 
     // Update the inline edit bar buttons and links
     $('.toggle_edit_mode').show();

-- 
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