From 5b168c0c6ccf4a50acb1d97afc1d230b2067220d Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Sun, 14 Oct 2007 06:46:39 +0000 Subject: * added progress dialog --- packages/dyntables/www/js/dyntables.js | 5 +++++ packages/dyntables/www/php/diag_dhcp_leases.php | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/dyntables/www/js/dyntables.js b/packages/dyntables/www/js/dyntables.js index 9c74ee5d..0ed0142a 100644 --- a/packages/dyntables/www/js/dyntables.js +++ b/packages/dyntables/www/js/dyntables.js @@ -35,6 +35,11 @@ */ /* ========================================================================== */ +function openInfoDialog() { + Dialog.info("Reloading table data ...", + {className:"alphacube", width:200, height:75, showProgress: true}); +} + /** * * @access public diff --git a/packages/dyntables/www/php/diag_dhcp_leases.php b/packages/dyntables/www/php/diag_dhcp_leases.php index 54883431..4ff8e241 100644 --- a/packages/dyntables/www/php/diag_dhcp_leases.php +++ b/packages/dyntables/www/php/diag_dhcp_leases.php @@ -264,13 +264,15 @@ $ajaxRequest = " '{$_SERVER['SCRIPT_NAME']}', { method: 'get', - parameters: 'refresh=true', + parameters: { refresh: 'true' }, + onLoading: openInfoDialog, onSuccess: function(transport) { var json = transport.responseText.evalJSON(); var table = document.getElementById('sortabletable'); emtyDhcpLeaseTable(table); dhcpLeaseTableToHTML(table, json, '{$g['theme']}'); + Dialog.closeInfo(); } }); } -- cgit v1.2.3