Author: sevein
Date: Thu Jun 28 17:16:16 2012
New Revision: 11831
Log:
Remove mouseleave handler, not needed. Simplify placement function.
Modified:
trunk/js/treeView.js
Modified: trunk/js/treeView.js
==============================================================================
--- trunk/js/treeView.js Thu Jun 28 16:09:37 2012 (r11830)
+++ trunk/js/treeView.js Thu Jun 28 17:16:16 2012 (r11831)
@@ -102,7 +102,7 @@
.on('mousedown.treeview.qubit', 'li', $.proxy(this.mousedownup,
this))
.on('mouseup.treeview.qubit', 'li', $.proxy(this.mousedownup, this))
.on('mouseenter.treeview.qubit', 'li', $.proxy(this.mouseenter,
this))
- .on('mouseleave.treeview.qubit', 'li', $.proxy(this.mouseleave,
this))
+ // .on('mouseleave.treeview.qubit', 'li', $.proxy(this.mouseleave,
this))
.bind('scroll', $.proxy(this.scroll, this))
.bind('scroll-debounced', $.proxy(this.debouncedScroll, this));
@@ -209,38 +209,13 @@
anchor.removeAttr('title');
}
- $li.popover({ placement: function()
- {
- var width = window.innerWidth;
-
- if (width < 500)
- {
- return 'bottom';
- }
-
- var left_pos = this.$element.offset().left;
-
- if (width - left_pos < 550)
- {
- return 'left';
- }
-
- return 'right';
-
- } });
+ $li.popover({ placement: (window.innerWidth -
this.$element.offset().left < 550) ? 'left' : 'right' });
$li.popover('show');
return this;
},
- mouseleave: function (e)
- {
- var $li = 'LI' === e.target.tagName ? $(e.target) :
$(e.target).closest('li');
-
- // $li.popover('hide');
-
- return this;
- },
+ // mouseleave: function (e) { return this; },
mousedownup: function (e)
{
--
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.