rbrindley: branch rbrindley/welcome_revamp r4270 - /team/rbrindley/welcome_re...
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Dec 3 10:51:50 CST 2008
Author: rbrindley
Date: Wed Dec 3 10:51:49 2008
New Revision: 4270
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4270
Log:
added sysinfo load/select tab functions
Modified:
team/rbrindley/welcome_revamp/config/welcome2.html
Modified: team/rbrindley/welcome_revamp/config/welcome2.html
URL: http://svn.digium.com/view/asterisk-gui/team/rbrindley/welcome_revamp/config/welcome2.html?view=diff&rev=4270&r1=4269&r2=4270
==============================================================================
--- team/rbrindley/welcome_revamp/config/welcome2.html (original)
+++ team/rbrindley/welcome_revamp/config/welcome2.html Wed Dec 3 10:51:49 2008
@@ -330,7 +330,41 @@
});
/* jQuery tabs init */
- $("#sys_status_info .body > ul").tabs();
+ $("#sys_status_info .body > ul").tabs().bind('tabsselect', function (e, ui) {
+ switch($(ui.panel).attr('id')) {
+ case 'info_general':
+ getsysinfohtml();
+ break;
+ case 'info_network':
+ $(ui.panel).empty();
+ ASTGUI.systemCmdWithOutput( 'ifconfig', function(output) {
+ $('<pre></pre>').html(output).appendTo(ui.panel);
+ });
+ break;
+ case 'info_memory':
+ $(ui.panel).empty();
+ ASTGUI.systemCmdWithOutput( 'free' , function(output){
+ $('<pre></pre>').html(output).appendTo(ui.panel);
+ });
+ break;
+ case 'info_disk':
+ $(ui.panel).empty();
+ ASTGUI.systemCmdWithOutput( 'df -k' , function(output){
+ $('<pre></pre>').html(output).appendTo(ui.panel);
+ });
+ if(parent.sessionData.PLATFORM.isAA50) {
+ try{
+ percentage_usage(output);
+ }catch(err){
+ ASTGUI.Log.Debug( '<B>Error Trying to calculate CF usage %');
+ }
+ }
+ break;
+ default:
+ break;
+ }
+ });
+ getsysinfohtml(); //pre-load general information as its not automatically triggered
/* Event Delegation */
$('body').click( $.delegate({
More information about the asterisk-gui-commits
mailing list