Skip to content

Commit

Permalink
2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoodyear committed Apr 3, 2014
1 parent 691f0d8 commit 6a43f3b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 2.3.2
- Allow to fully disable scrollTitle

## 2.3.1
- Update jQuery to 1.11.0
- Fix bug with jQuery 1.11.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ScrollUp 2.3.1 [![Build Status](https://travis-ci.org/markgoodyear/scrollup.png?branch=master)](https://travis-ci.org/markgoodyear/scrollup)
# ScrollUp 2.3.2 [![Build Status](https://travis-ci.org/markgoodyear/scrollup.png?branch=master)](https://travis-ci.org/markgoodyear/scrollup)

## Installing with Bower
To install scrollUp with Bower:
Expand Down
14 changes: 8 additions & 6 deletions js/jquery.scrollUp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
scrollup v2.3.1
scrollup v2.3.2
Author: Mark Goodyear - http://markgoodyear.com
Git: https://github.com/markgoodyear/scrollup
Expand Down Expand Up @@ -29,20 +29,22 @@
// Apply any options to the settings, override the defaults
var o = $.fn.scrollUp.settings = $.extend({}, $.fn.scrollUp.defaults, options),

// Set scrollTitle
scrollTitle = (o.scrollTitle) ? o.scrollTitle : o.scrollText,

// Create element
$self;
if (o.scrollTrigger) {
$self = $(o.scrollTrigger);
} else {
$self = $('<a/>', {
id: o.scrollName,
href: '#top',
title: scrollTitle
href: '#top'
});
}

// Set scrollTitle if there is one
if (o.scrollTitle) {
$self.attr('title', o.scrollTitle);
}

$self.appendTo('body');

// If not using an image display text
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.scrollUp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "scrollup",
"title": "scrollUp",
"description": "A jQuery plugin to create a customisable 'Scroll to top' feature that will work with any website, with ease.",
"version": "2.3.1",
"version": "2.3.2",
"year": "2014",
"keywords": [
"jquery",
Expand Down
12 changes: 7 additions & 5 deletions src/jquery.scrollUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,22 @@
// Apply any options to the settings, override the defaults
var o = $.fn.scrollUp.settings = $.extend({}, $.fn.scrollUp.defaults, options),

// Set scrollTitle
scrollTitle = (o.scrollTitle) ? o.scrollTitle : o.scrollText,

// Create element
$self;
if (o.scrollTrigger) {
$self = $(o.scrollTrigger);
} else {
$self = $('<a/>', {
id: o.scrollName,
href: '#top',
title: scrollTitle
href: '#top'
});
}

// Set scrollTitle if there is one
if (o.scrollTitle) {
$self.attr('title', o.scrollTitle);
}

$self.appendTo('body');

// If not using an image display text
Expand Down

0 comments on commit 6a43f3b

Please sign in to comment.