Index: trunk/kernel/admin/include/toolbar/browse.php =================================================================== diff -u -r3305 -r3427 --- trunk/kernel/admin/include/toolbar/browse.php (.../browse.php) (revision 3305) +++ trunk/kernel/admin/include/toolbar/browse.php (.../browse.php) (revision 3427) @@ -272,6 +272,10 @@ case 'decline': k4_action = 'decine_items("'+prefix_special+'")'; break; + + case 'm_rebuild_cache': + k4_action = 'rebuild_cache("c")'; + break; case 'copy': k4_action = 'copy_items("'+prefix_special+'")'; @@ -350,6 +354,11 @@ { Grids[prefix_special].ClearSelection(null,'Inp_AdvancedView.Unselect'); } + + function rebuild_cache(prefix_special) + { + submit_event(prefix_special,'OnRebuildCache','') + } // K4 code for handling toolbar operations: end @@ -398,7 +407,7 @@ AddButtonAction('import',"check_submit('$admin/browse','import');"); // import AddButtonAction('export',"check_submit('$admin/browse','export');"); // export - AddButtonAction('rebuild_cache',"check_submit('$admin/category/category_maint', '[prefix=m_]rebuild_cache');"); // rebuild_cache + AddButtonAction('rebuild_cache',"check_submit('$admin/category/category_maint', 'm_rebuild_cache');"); // rebuild_cache AddButtonAction('cut',"check_submit('$admin/browse','cut');"); //cut AddButtonAction('copy',"check_submit('$admin/browse','copy');"); //copy @@ -519,12 +528,13 @@ if(page.length==0) page = activeTab.getAttribute("EditURL"); - if ( action_prefix.match("k4:(.*)") ) { + if ( action_prefix.match("k4:(.*)") ) + { act = RegExp.$1; act = act.replace('$\$event$$', actionValue); act = act.replace('$\$prefix$$', activeTab.getAttribute("PrefixSpecial") ); - eval(act); - return; + eval(act); + return; } } else @@ -538,9 +548,9 @@ if(f) { - if ( actionValue.match(/\[prefix=(.*)\](.*)/) ) + if (actionValue.substring(0,2) == 'm_') { - f.Action.value = RegExp.$1 + RegExp.$2; + f.Action.value = actionValue; } else {