From 36c282536f6ebecd6e6cd40fb558c55ac0b5d615 Mon Sep 17 00:00:00 2001 From: hamza zia Date: Tue, 3 Jun 2014 04:02:23 +0800 Subject: [PATCH] support for tweaking download page size in the webui configuration --- configuration.js | 3 ++- index.html | 2 +- js/ctrls/main.js | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configuration.js b/configuration.js index 85426a6..62a2477 100644 --- a/configuration.js +++ b/configuration.js @@ -1,7 +1,7 @@ angular .module('webui.services.configuration', []) .constant('$name', 'webui-aria2') // name used accross the entire UI -.constant('$globalTimeout', 1000) // interval to update the individual downloads +.constant('$pageSize', 11) // number of downloads shown before pagination kicks in .constant('$authconf', { // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised host: 'localhost', port: 6800, @@ -32,6 +32,7 @@ angular // go to Global Settings dialog to see their description 'dir', 'conf-path', 'auto-file-renaming', 'max-connection-per-server', ]) +.constant('$globalTimeout', 1000) // interval to update the individual downloads ; diff --git a/index.html b/index.html index 3393b27..5ace01d 100755 --- a/index.html +++ b/index.html @@ -600,7 +600,7 @@