Permalink
Browse files

had it backwards.

  • Loading branch information...
1 parent 2bdab16 commit 458432de6a9b2e21e8d086c8ec7eebae648cb05f @jamilbk committed Jul 22, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 jquery.infinitescroll.js
View
@@ -135,12 +135,13 @@
// Define loading.msg
if (opts.loading.img === "") {
+ opts.loading.msg = $('<div id="infscr-loading"><div>' + opts.loading.msgText + '</div></div>');
+
+ } else {
opts.loading.msg = $('<div id="infscr-loading"><img alt="Loading..." src="' + opts.loading.img + '" /><div>' + opts.loading.msgText + '</div></div>');
// Preload loading.img
(new Image()).src = opts.loading.img;
- } else {
- opts.loading.msg = $('<div id="infscr-loading"><div>' + opts.loading.msgText + '</div></div>');
}
// distance from nav links to bottom

0 comments on commit 458432d

Please sign in to comment.