Let mobile users see getting_started, fix profile page infinite scroll on the mobile site
This commit is contained in:
parent
3c4f6527ec
commit
cdfaa83e97
1 changed files with 166 additions and 157 deletions
|
|
@ -4,6 +4,8 @@
|
||||||
// version 2.0b1.110420
|
// version 2.0b1.110420
|
||||||
|
|
||||||
// home and docs: http://www.infinite-scroll.com
|
// home and docs: http://www.infinite-scroll.com
|
||||||
|
// Modified by Diaspora:
|
||||||
|
// A few callbacks were made options and generateInstanceID was make jquery 162 compatible
|
||||||
*/
|
*/
|
||||||
|
|
||||||
; (function ($) {
|
; (function ($) {
|
||||||
|
|
@ -78,7 +80,14 @@
|
||||||
|
|
||||||
//Generate InstanceID based on random data (to give consistent but different ID's)
|
//Generate InstanceID based on random data (to give consistent but different ID's)
|
||||||
function generateInstanceID(element) {
|
function generateInstanceID(element) {
|
||||||
var number = $(element).length + $(element).html().length + $(element).attr("class").length + $(element).attr("id").length;
|
var $element = $(element)
|
||||||
|
var number = $element.length + $element.html().length
|
||||||
|
if($element.attr("class") !== undefined){
|
||||||
|
number += $element.attr("class").length
|
||||||
|
}
|
||||||
|
if($element.attr("id") !== undefined){
|
||||||
|
number += $element.attr("id").length
|
||||||
|
}
|
||||||
opts.infid = number;
|
opts.infid = number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue