Author: Jonathan.Wage
Date: 2010-01-26 19:02:17 +0100 (Tue, 26 Jan 2010)
New Revision: 27205
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/web/js/editor.js
Log:
[1.4][sfSympalPlugin][1.0] Fixing issue with edit mode toggling
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/web/js/editor.js
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/web/js/editor.js
2010-01-26 17:59:42 UTC (rev 27204)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/web/js/editor.js
2010-01-26 18:02:17 UTC (rev 27205)
@@ -59,24 +59,23 @@
$.cookie('sympal_inline_edit_mode', enabled ? 'true' : 'false');
- // Toggle the editor state
- $('.sympal_content_slot .editor').toggle();
-
if (clicked)
{
// Focus on the form element that was clicked to enable inline editing
$($(clicked).parent().get(0)).find('.editor input, .editor textarea,
.editor select:first').focus();
}
- // Toggle the value state
- $('.sympal_content_slot .value').toggle();
-
// If the state is being enabled then lets change the inline edit bar
buttons and link
if (enabled)
{
enabled = false;
$('.toggle_edit_mode').hide();
$('.sympal_inline_edit_bar_buttons').show();
+ $('.sympal_content_slot .editor').show();
+ $('.sympal_content_slot .value').hide()
+ } else {
+ $('.sympal_content_slot .editor').hide();
+ $('.sympal_content_slot .value').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.