Author: ornicar2
Date: 2010-01-19 01:44:50 +0100 (Tue, 19 Jan 2010)
New Revision: 26858
Modified:
plugins/diemPlugin/trunk/dmFrontPlugin/web/js/page/dmWidget.js
Log:
[Diem]
- fixed widget ajax preview by using encoded assets when clicking on the try
button of the widget edition dialog
Modified: plugins/diemPlugin/trunk/dmFrontPlugin/web/js/page/dmWidget.js
===================================================================
--- plugins/diemPlugin/trunk/dmFrontPlugin/web/js/page/dmWidget.js
2010-01-18 23:24:08 UTC (rev 26857)
+++ plugins/diemPlugin/trunk/dmFrontPlugin/web/js/page/dmWidget.js
2010-01-19 00:44:50 UTC (rev 26858)
@@ -11,9 +11,9 @@
openEditDialog: function()
{
- var widget = this, activeTab = null, dialog_class =
'dm_widget_edit_dialog_wrap '+widget.element.attr('id')+'_edit_dialog';
+ var widget = this, activeTab = null, dialogClass =
'dm_widget_edit_dialog_wrap '+widget.element.attr('id')+'_edit_dialog';
- if ($('body > div.'+dialog_class).length)
+ if ($('body > div.'+dialogClass).length)
{
return;
}
@@ -23,7 +23,7 @@
data: { widget_id: widget.getId() },
title: $('a.dm_widget_edit', widget.element).attr('title'),
width: 370,
- 'class': dialog_class,
+ 'class': dialogClass,
beforeClose: function()
{
if (!widget.deleted)
@@ -162,6 +162,11 @@
replace: function(html)
{
+ if($encodedAssets = $('>div.dm_encoded_assets', '<div>'+html+'</div>'))
+ {
+ this.element.append($encodedAssets).dmExtractEncodedAssets();
+ }
+
this.element
.attr('class', $('>div:first', '<div>'+html+'</div>').attr('class'))
.find('>div.dm_widget_inner')
--
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.