diff options
Diffstat (limited to 'packages/dyntables/www')
-rw-r--r-- | packages/dyntables/www/js/dyntables.js | 5 | ||||
-rw-r--r-- | packages/dyntables/www/php/diag_dhcp_leases.php | 4 |
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(); } }); } |