lib/sdoc/generator/template/shtml/resources/js/searchdoc.js in voloko-sdoc-0.2.0 vs lib/sdoc/generator/template/shtml/resources/js/searchdoc.js in voloko-sdoc-0.2.1
- old
+ new
@@ -65,11 +65,11 @@
clearTimeout(this.moveTimeout);
this.moveTimeout = null;
}
this.startMoveTimeout = function(isDown) {
- if (!$.browser.mozilla) return;
+ if (!$.browser.mozilla && !$.browser.opera) return;
if (this.moveTimeout) this.clearMoveTimeout();
var _this = this;
var go = function() {
if (!_this.moveTimeout) return;
@@ -378,9 +378,10 @@
if (jQuery.browser.msie) this.$element[0].className += '';
}
this.open = function(src) {
this.frame.location.href = '../' + src;
+ if (this.frame.highlight) this.frame.highlight(src);
}
this.select = function() {
this.open(this.$current.data('path'));
}