Changeset 6523

Show
Ignore:
Timestamp:
08/31/08 19:03:03 (5 years ago)
Author:
p_lindheimer
Message:

added new paramter restrictmods which will direct config.php to minimize the module functions.inc.php that get included used for quietmode light weight calls like ajax calls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/dashboard/module.xml

    r5852 r6523  
    22  <rawname>dashboard</rawname> 
    33  <name>System Dashboard</name> 
    4   <version>2.4.0.3</version> 
     4  <version>2.5.0</version> 
    55  <candisable>no</candisable> 
    66  <canuninstall>no</canuninstall> 
     
    1818  </depends> 
    1919  <changelog> 
     20    *2.5.0* #3134 add amportal DASHBOARD_STATS_UPDATE_TIME, DASHBOARD_INFO_UPDATE_TIME 
    2021    *2.4.0.3* #2871 do not show Sangoma wanpipe interfaces in the Network Stats 
    2122    *2.4.0.2* #2701, #2843 add proper JSON header to fix some proxy servers, Russian Translation 
  • modules/branches/2.5/dashboard/page.index.php

    r6514 r6523  
    544544    $.ajax({ 
    545545      type: 'GET', 
    546       url: "<?php echo $_SERVER["PHP_SELF"]; ?>?type=tool&display=<?php echo $module_page; ?>&quietmode=1&info=info",  
     546      url: "<?php echo $_SERVER["PHP_SELF"]; ?>?type=tool&display=<?php echo $module_page; ?>&quietmode=1&info=info&restrictmods=core/dashboard",  
    547547      dataType: 'json', 
    548548      success: function(data) { 
     
    576576    $.ajax({ 
    577577      type: 'GET', 
    578       url: "<?php echo $_SERVER["PHP_SELF"]; ?>?type=tool&display=<?php echo $module_page; ?>&quietmode=1&info=stats",  
     578      url: "<?php echo $_SERVER["PHP_SELF"]; ?>?type=tool&display=<?php echo $module_page; ?>&quietmode=1&info=stats&restrictmods=core/dashboard",  
    579579      dataType: 'json', 
    580580      success: function(data) { 
     
    593593  function changeSyslog(showall) { 
    594594    $('#syslog_button').text('<?php echo _('loading...'); ?>'); 
    595     $('#syslog').load("<?php echo $_SERVER["PHP_SELF"]; ?>?type=tool&display=<?php echo $module_page; ?>&quietmode=1&info=syslog&showall="+showall,{}, function() { 
     595    $('#syslog').load("<?php echo $_SERVER["PHP_SELF"]; ?>?type=tool&display=<?php echo $module_page; ?>&quietmode=1&restrictmods=core/dashboard&info=syslog&showall="+showall,{}, function() { 
    596596      makeSyslogClickable(); 
    597597    }); 
     
    600600  function hide_notification(domid, module, id) { 
    601601    $('#'+domid).fadeOut('slow'); 
    602     $.post('config.php', {display:'<?php echo $module_page; ?>', quietmode:1, info:'syslog_ack', module:module, id:id}); 
     602    $.post('config.php', {display:'<?php echo $module_page; ?>', quietmode:1, info:'syslog_ack', module:module, id:id, restrictmods:'core/dashboard'}); 
    603603  } 
    604604  function delete_notification(domid, module, id) { 
    605605    $('#'+domid).fadeOut('slow'); 
    606     $.post('config.php', {display:'<?php echo $module_page; ?>', quietmode:1, info:'syslog_delete', module:module, id:id}); 
     606    $.post('config.php', {display:'<?php echo $module_page; ?>', quietmode:1, info:'syslog_delete', module:module, id:id, restrictmods:'core/dashboard'}); 
    607607  } 
    608608  </script>