Author: Jonathan.Wage
Date: 2010-02-10 21:53:31 +0100 (Wed, 10 Feb 2010)
New Revision: 27856

Modified:
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/web/js/editor.js
Log:
[1.4][sfSympalPlugin][1.0] Changing editor save to not disable edit mode when 
save is complete


Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/web/js/editor.js
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/web/js/editor.js  
    2010-02-10 20:49:23 UTC (rev 27855)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/web/js/editor.js  
    2010-02-10 20:53:31 UTC (rev 27856)
@@ -130,11 +130,16 @@
   }
 }
 
-function sympalSaveContentSlots(preview)
+function sympalSaveContentSlots(preview, disableEditMode)
 {
   $('.sympal_inline_edit_loading').show();
 
   preview = typeof(preview) != 'undefined' ? preview : false;
+  disableEditMode = typeof(disableEditMode) != 'undefined' ? disableEditMode : 
false;
+  if (preview)
+  {
+    disableEditMode = true;
+  }
 
   sympalTinyMCETriggerSave();
 
@@ -154,7 +159,10 @@
     {
       $('#sympal_slot_errors').html('');
 
-      sympalDisableEditMode();
+      if (disableEditMode)
+      {
+        sympalDisableEditMode();
+      }
     }
 
     eval(response);

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