Author: sevein
Date: Mon Oct 3 16:29:11 2011
New Revision: 9905
Log:
Call external function if exists to extend description behavior from plugins
Modified:
trunk/js/description.js
Modified: trunk/js/description.js
==============================================================================
--- trunk/js/description.js Mon Oct 3 14:20:04 2011 (r9904)
+++ trunk/js/description.js Mon Oct 3 16:29:11 2011 (r9905)
@@ -8,20 +8,13 @@
$('.description', context).hide();
$(':has(> .description)', context)
- .focusin(function ()
+ .focusin(window.description_focusin ? window.description_focusin :
function ()
{
var $this = $(this);
var $description = $('.description', this);
var $sidebar = $('#sidebar-first');
var $content = $('#content');
- // Add title from label
- var label = $(this).find('label').html();
- if (!$description.find('h2').length && label)
- {
- $description.prepend('<h2 class="element-invisible">' +
label + '</h2');
- }
-
// Specific case for tooltips in YUI dialogs
var $dialog = $this.closest('div.yui-panel');
if ($dialog.length)
@@ -71,7 +64,7 @@
// Show the tooltip
$description.show();
})
- .focusout(function ()
+ .focusout(window.description_focusout ?
window.description_focusout : function ()
{
$('.description', this)
.removeClass('description-left')
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" 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/qubit-commits?hl=en.