aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dyntables
diff options
context:
space:
mode:
authorDaniel Stefan Haischt <dsh@pfsense.org>2007-10-14 06:46:39 +0000
committerDaniel Stefan Haischt <dsh@pfsense.org>2007-10-14 06:46:39 +0000
commit5b168c0c6ccf4a50acb1d97afc1d230b2067220d (patch)
tree5bc22e3b066acce50d6ea955c78211d9bca3f3f7 /packages/dyntables
parent3f954110060a4ea0602d3cb3f34ea32db4564878 (diff)
downloadpfsense-packages-5b168c0c6ccf4a50acb1d97afc1d230b2067220d.tar.gz
pfsense-packages-5b168c0c6ccf4a50acb1d97afc1d230b2067220d.tar.bz2
pfsense-packages-5b168c0c6ccf4a50acb1d97afc1d230b2067220d.zip
* added progress dialog
Diffstat (limited to 'packages/dyntables')
-rw-r--r--packages/dyntables/www/js/dyntables.js5
-rw-r--r--packages/dyntables/www/php/diag_dhcp_leases.php4
2 files changed, 8 insertions, 1 deletions
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();
}
});
}