Author: ornicar2
Date: 2010-02-03 01:49:31 +0100 (Wed, 03 Feb 2010)
New Revision: 27463
Modified:
plugins/diemPlugin/trunk/dmCorePlugin/web/js/dmCoreEditPlugins.js
Log:
[Diem]
- javascript plugin dmDroppableInput now accepts a callback as its first
argument
Modified: plugins/diemPlugin/trunk/dmCorePlugin/web/js/dmCoreEditPlugins.js
===================================================================
--- plugins/diemPlugin/trunk/dmCorePlugin/web/js/dmCoreEditPlugins.js
2010-02-03 00:00:05 UTC (rev 27462)
+++ plugins/diemPlugin/trunk/dmCorePlugin/web/js/dmCoreEditPlugins.js
2010-02-03 00:49:31 UTC (rev 27463)
@@ -5,7 +5,7 @@
$.fn.extend({
- dmDroppableInput: function()
+ dmDroppableInput: function(callback)
{
var $input = this;
@@ -39,6 +39,8 @@
{
$input.val('page:' + ui.draggable.attr('id').replace(/dmp/, '')
+ ' ' + ui.draggable.find('>a').text());
}
+
+ callback && $.isFunction(callback) && callback.apply($input);
}
});
}
--
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.