Skip to content

Commit b6d3571

Browse files
committed
removing the jQuery.scrollto dependency.
1 parent f6494e6 commit b6d3571

File tree

5 files changed

+1
-25
lines changed

5 files changed

+1
-25
lines changed

Diff for: NOTICE

-11
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,3 @@ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
7878
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
7979
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
8080
OTHER DEALINGS IN THE SOFTWARE.
81-
82-
---------------------------------------------------------------------------
83-
jQuery.ScrollTo - Easy element scrolling using jQuery.
84-
85-
Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
86-
Dual licensed under MIT and GPL.
87-
Date: 5/25/2009
88-
@author Ariel Flesler
89-
@version 1.4.2
90-
91-
http://flesler.blogspot.com/2007/10/jqueryscrollto.html

Diff for: config/assets.yml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ javascripts:
55
viewer:
66
- public/javascripts/DV/vendor/jquery-1.4.2.js
77
- public/javascripts/DV/vendor/jquery-ui-1.8.1.custom.min.js
8-
- public/javascripts/DV/vendor/jquery.scrollTo-min.js
98
- public/javascripts/DV/vendor/underscore.js
109
- public/javascripts/DV/vendor/jquery.easing.compatibility.js
1110
- public/javascripts/DV/vendor/jquery.acceptInput.js

Diff for: public/javascripts/DV/helpers/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ _.extend(DV.Schema.helpers, {
146146
var match = $j('#DV-textContents span.DV-searchMatch:eq('+index+')');
147147
match.addClass('DV-highlightedMatch');
148148

149-
this.elements.window.scrollTo(match.position().top-50,{ axis: 'y' });
149+
this.elements.window[0].scrollTop = match.position().top - 50;
150150
if (searchResponse) searchResponse.highlighted = index;
151151

152152
// cleanup

Diff for: public/javascripts/DV/vendor/jquery.scrollTo-min.js

-11
This file was deleted.

Diff for: viewer-debug.html

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
<script src="public/javascripts/DV/vendor/jquery-1.4.2.js" type="text/javascript"></script>
4343
<script src="public/javascripts/DV/vendor/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script>
44-
<script src="public/javascripts/DV/vendor/jquery.scrollTo-min.js" type="text/javascript"></script>
4544
<script src="public/javascripts/DV/vendor/underscore.js" type="text/javascript"></script>
4645
<script src="public/javascripts/DV/vendor/jquery.easing.compatibility.js" type="text/javascript"></script>
4746
<script src="public/javascripts/DV/vendor/jquery.acceptInput.js" type="text/javascript"></script>

0 commit comments

Comments
 (0)