Author: sevein
Date: Thu Sep 22 17:10:22 2011
New Revision: 9798
Log:
Add class description-dialog and add title
Modified:
trunk/js/description.js
Modified: trunk/js/description.js
==============================================================================
--- trunk/js/description.js Thu Sep 22 16:04:44 2011 (r9797)
+++ trunk/js/description.js Thu Sep 22 17:10:22 2011 (r9798)
@@ -15,6 +15,13 @@
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)
@@ -27,7 +34,7 @@
.closest('.form-item').css('position', 'static').end()
// Show tooltip
- .addClass('description-right').show();
+ .addClass('description-dialog').show();
};
positionateDialog();
--
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.