fix typo and remove animation
This commit is contained in:
parent
f19fd30278
commit
866ca51d83
1 changed files with 1 additions and 2 deletions
|
@ -21,7 +21,6 @@ OC.Log={
|
||||||
$.get(OC.filePath('settings','ajax','getlog.php'),{offset:OC.Log.loaded,count:count},function(result){
|
$.get(OC.filePath('settings','ajax','getlog.php'),{offset:OC.Log.loaded,count:count},function(result){
|
||||||
if(result.status=='success'){
|
if(result.status=='success'){
|
||||||
OC.Log.addEntries(result.data);
|
OC.Log.addEntries(result.data);
|
||||||
$('html, body').animate({scrollTop: $(document).height()}, 800);
|
|
||||||
if(!result.remain){
|
if(!result.remain){
|
||||||
$('#moreLog').hide();
|
$('#moreLog').hide();
|
||||||
}
|
}
|
||||||
|
@ -33,7 +32,7 @@ OC.Log={
|
||||||
count = count || 10;
|
count = count || 10;
|
||||||
//calculate remaining items - at least 3
|
//calculate remaining items - at least 3
|
||||||
OC.Log.loaded = Math.max(3,OC.Log.loaded-count);
|
OC.Log.loaded = Math.max(3,OC.Log.loaded-count);
|
||||||
$('#moreLog').hide();
|
$('#moreLog').show();
|
||||||
// remove all non-remaining items
|
// remove all non-remaining items
|
||||||
$('#log tr').slice(OC.Log.loaded).remove();
|
$('#log tr').slice(OC.Log.loaded).remove();
|
||||||
if(OC.Log.loaded <= 3)
|
if(OC.Log.loaded <= 3)
|
||||||
|
|
Loading…
Reference in a new issue