diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-04-16 12:21:12 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-16 12:21:48 +0200 |
commit | 5720bd296dbd5f0459ea53c12d488999193801da (patch) | |
tree | 6bb24f9174ee5db421f3a0d0c4d635ecc00d983b /settings/js/log.js | |
parent | 70d0103a675fca4896974f1d59f5e76365304159 (diff) | |
download | nextcloud-server-5720bd296dbd5f0459ea53c12d488999193801da.tar.gz nextcloud-server-5720bd296dbd5f0459ea53c12d488999193801da.zip |
merge log into admin
Diffstat (limited to 'settings/js/log.js')
-rw-r--r-- | settings/js/log.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/settings/js/log.js b/settings/js/log.js index ae83f0a6283..bccf2c88269 100644 --- a/settings/js/log.js +++ b/settings/js/log.js @@ -6,14 +6,15 @@ OC.Log={ levels:['Debug','Info','Warning','Error','Fatal'], - loaded:50,//are initially loaded + loaded:3,//are initially loaded getMore:function(){ - $.get(OC.filePath('settings','ajax','getlog.php'),{offset:OC.Log.loaded},function(result){ + $.get(OC.filePath('settings','ajax','getlog.php'),{offset:OC.Log.loaded,count:10},function(result){ if(result.status=='success'){ OC.Log.addEntries(result.data); + $('html, body').animate({scrollTop: $(document).height()}, 800); } }); - OC.Log.loaded+=50; + OC.Log.loaded+=10; }, addEntries:function(entries){ for(var i=0;i<entries.length;i++){ |