Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

fix scrollToBottom() version check for jQuery > 1.10 #30

Merged
merged 1 commit into from
Jun 14, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion jquery.console.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,12 @@

// Scroll to the bottom of the view
function scrollToBottom() {
if (jQuery.fn.jquery > "1.6") {
var version = jQuery.fn.jquery.split('.');
var major = parseInt(version[0]);
var minor = parseInt(version[1]);

// check if we're using jquery > 1.6
if ((major == 1 && minor > 6) || major > 1) {
inner.prop({ scrollTop: inner.prop("scrollHeight") });
}
else {
Expand Down