From: Lebbeous Fogle-Weekley Date: Tue, 13 Mar 2012 15:21:59 +0000 (-0400) Subject: AutoSuggest: don't force-scroll browser; that's irritating X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2bebbd99cf600d57ca6e8513dd833fc5e52461e2;p=contrib%2FConifer.git AutoSuggest: don't force-scroll browser; that's irritating By default, Dijits and things that inherit from Dijits (at least in Dojo 1.3.3 that we're still using), have a true value for an attribute called scrollOnFocus. This makes your browser jump to ensure that the widget that just received focus is in view. You don't always want this though. Try expanding the extras on the record detail page of the TPAC without this commit, but with AutoSuggest enabled, for example. This commit sets the scrollOnFocus attribute to false for the AutoSuggest widget. Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js b/Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js index e145c2d3b8..81927517b9 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js @@ -52,6 +52,7 @@ if (!dojo._hasResource["openils.widget.AutoSuggest"]) { dojo.declare( "openils.widget.AutoSuggest", [dijit.form.ComboBox], { + "scrollOnFocus": false, "labelAttr": "match", "labelType": "html", "searchAttr": "term",