Author: ornicar2
Date: 2010-01-27 13:05:03 +0100 (Wed, 27 Jan 2010)
New Revision: 27235
Modified:
plugins/diemPlugin/trunk/dmFrontPlugin/web/js/page/dmWidget.js
Log:
[Diem]
- clicking two times on a front Widget link will put the existing window on
top, instead of opening a new one
Modified: plugins/diemPlugin/trunk/dmFrontPlugin/web/js/page/dmWidget.js
===================================================================
--- plugins/diemPlugin/trunk/dmFrontPlugin/web/js/page/dmWidget.js
2010-01-27 11:55:19 UTC (rev 27234)
+++ plugins/diemPlugin/trunk/dmFrontPlugin/web/js/page/dmWidget.js
2010-01-27 12:05:03 UTC (rev 27235)
@@ -11,10 +11,11 @@
openEditDialog: function()
{
- var widget = this, activeTab = null, dialogClass =
'dm_widget_edit_dialog_wrap '+widget.element.attr('id')+'_edit_dialog';
-
+ var widget = this, activeTab = null, dialogClass =
widget.element.attr('id')+'_edit_dialog';
+
if ($('body > div.'+dialogClass).length)
{
+ $('body >
div.'+dialogClass).find('div.ui-dialog-content').dialog('moveToTop');
return;
}
@@ -23,7 +24,7 @@
data: { widget_id: widget.getId() },
title: $('a.dm_widget_edit', widget.element).attr('title'),
width: 370,
- 'class': dialogClass,
+ 'class': 'dm_widget_edit_dialog_wrap '+dialogClass,
beforeClose: function()
{
if (!widget.deleted)
--
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.