|
|
|
|
@ -18,4 +18,29 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<script> |
|
|
|
|
$(document).ready(function() { |
|
|
|
|
$("#link_load_more_items").click(function() { |
|
|
|
|
page = $("#link_load_more_items").attr("data_link"); |
|
|
|
|
$.ajax({ |
|
|
|
|
beforeSend: function(objeto) { |
|
|
|
|
$("#display_response_id").html("'.addslashes(get_lang('Loading')).'"); |
|
|
|
|
}, |
|
|
|
|
type: "GET", |
|
|
|
|
url: "main/inc/ajax/online.ajax.php?a=load_online_user", |
|
|
|
|
data: "online_page_nr="+page, |
|
|
|
|
success: function(data) { |
|
|
|
|
$("#display_response_id").html(""); |
|
|
|
|
if (data != "end") { |
|
|
|
|
$("#link_load_more_items").remove(); |
|
|
|
|
var last = $("#online_grid_container li:last"); |
|
|
|
|
last.after(data); |
|
|
|
|
} else { |
|
|
|
|
$("#link_load_more_items").remove(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
{% endblock %} |
|
|
|
|
|