Author: sevein
Date: Thu Aug 9 17:44:17 2012
New Revision: 12069
Log:
Show publication status in the popup title
Modified:
trunk/js/treeView.js
trunk/lib/helper/QubitHelper.php
Modified: trunk/js/treeView.js
==============================================================================
--- trunk/js/treeView.js Thu Aug 9 17:33:09 2012 (r12068)
+++ trunk/js/treeView.js Thu Aug 9 17:44:17 2012 (r12069)
@@ -207,7 +207,8 @@
{
var $li = 'LI' === e.target.tagName ? $(e.target) :
$(e.target).closest('li');
var anchor = $li.children('a');
- var level = $li.children('strong');
+ var level = $li.children('strong.levelOfDescription');
+ var publicationStatus = $li.children('strong.publicationStatus');
// Do nothing if anchor is not collapsed
if (anchor.width() + level.width() <= $li.width() - 5)
@@ -220,11 +221,25 @@
{
$li.data('content', anchor.attr('title'));
+ var title = '';
+
if (level.text())
{
- $li.data('title', level.text());
+ title += level.text();
+ }
+
+ if (publicationStatus.text())
+ {
+ if (title.length)
+ {
+ title += " ";
+ }
+
+ title += publicationStatus.text();
}
+ $li.data('title', title);
+
// Remove HTML title attribute so the browser won't show its
// native tooltip
anchor.removeAttr('title');
Modified: trunk/lib/helper/QubitHelper.php
==============================================================================
--- trunk/lib/helper/QubitHelper.php Thu Aug 9 17:33:09 2012 (r12068)
+++ trunk/lib/helper/QubitHelper.php Thu Aug 9 17:44:17 2012 (r12069)
@@ -211,7 +211,7 @@
// Level of description
if (null !== $levelOfDescription =
QubitTerm::getById($item->levelOfDescriptionId))
{
- $node .= '<strong>'.$levelOfDescription->getName().'</strong>';
+ $node .= '<strong
class="levelOfDescription">'.$levelOfDescription->getName().'</strong>';
}
// Title
--
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.