From 866ca51d834632ace8a049465e7910113620e560 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 28 Mar 2013 16:11:46 +0100 Subject: [PATCH] fix typo and remove animation --- settings/js/log.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/settings/js/log.js b/settings/js/log.js index 1aced805a4..81117f9e82 100644 --- a/settings/js/log.js +++ b/settings/js/log.js @@ -21,7 +21,6 @@ OC.Log={ $.get(OC.filePath('settings','ajax','getlog.php'),{offset:OC.Log.loaded,count:count},function(result){ if(result.status=='success'){ OC.Log.addEntries(result.data); - $('html, body').animate({scrollTop: $(document).height()}, 800); if(!result.remain){ $('#moreLog').hide(); } @@ -33,7 +32,7 @@ OC.Log={ count = count || 10; //calculate remaining items - at least 3 OC.Log.loaded = Math.max(3,OC.Log.loaded-count); - $('#moreLog').hide(); + $('#moreLog').show(); // remove all non-remaining items $('#log tr').slice(OC.Log.loaded).remove(); if(OC.Log.loaded <= 3)