Index: branches/RC/core/units/admin/admin_events_handler.php =================================================================== diff -u -N -r10455 -r10577 --- branches/RC/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 10455) +++ branches/RC/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 10577) @@ -39,23 +39,40 @@ return parent::CheckPermission($event); } + /** + * Enter description here... + * + * @param kEvent $event + */ function OnResetModRwCache(&$event) { + if ($this->Application->GetVar('ajax') == 'yes') { + $event->status = erSTOP; + } $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName LIKE "mod_rw%"'); } function OnResetCMSMenuCache(&$event) { + if ($this->Application->GetVar('ajax') == 'yes') { + $event->status = erSTOP; + } $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "cms_menu"'); } function OnResetSections(&$event) { + if ($this->Application->GetVar('ajax') == 'yes') { + $event->status = erSTOP; + } $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "sections_parsed"'); } function OnResetConfigsCache(&$event) { + if ($this->Application->GetVar('ajax') == 'yes') { + $event->status = erSTOP; + } $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "config_files" OR VarName = "configs_parsed" OR VarName = "sections_parsed"'); } @@ -206,6 +223,10 @@ */ function OnRebuildThemes(&$event) { + if ($this->Application->GetVar('ajax') == 'yes') { + $event->status = erSTOP; + } + $themes_helper =& $this->Application->recallObject('ThemesHelper'); /* @var $themes_helper kThemesHelper */