Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #14 from paulmcpazzi/master

scrollToBottom doesn't work width jQuery 1.6+ because of the new the .prop() method
  • Loading branch information...
commit f244e8b0559e8dc61e1e0e02db99841077e58059 2 parents 055c2c2 + 1d23e90
@chrisdone authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 jquery.console.js
View
7 jquery.console.js
@@ -409,7 +409,12 @@
// Scroll to the bottom of the view
function scrollToBottom() {
- inner.attr({ scrollTop: inner.attr("scrollHeight") });;
+ if (jQuery.fn.jquery > "1.6") {
+ inner.prop({ scrollTop: inner.prop("scrollHeight") });
+ }
+ else {
+ inner.attr({ scrollTop: inner.attr("scrollHeight") });
+ }
};
function cancelExecution() {
Please sign in to comment.
Something went wrong with that request. Please try again.