});
this._triggerElement.click($.proxy(this.toggle, this));
+ if (this._options.showAllLink) {
+ this._triggerElement.dblclick($.proxy(this._dblClick, this));
+ }
var $badge = this._triggerElement.find('span.badge');
if ($badge.length) {
return false;
},
+ /**
+ * Forward to original URL by double clicking the trigger element.
+ *
+ * @param object event
+ * @return boolean
+ */
+ _dblClick: function(event) {
+ event.preventDefault();
+
+ window.location = this._options.showAllLink;
+
+ return false;
+ },
+
/**
* Initializes the dropdown on first usage.
*