rewritten: plugin 'menu'
now we have a cache for the plugin (this limits the number of database requests) added: to plugin 'menu' menu_dir_tab can have a 'current' parameter (first argument) (it uses the last path from the previous menu_dir_tab) changed: updated to the new EZC api added: new message to plugins: WINIX_DIR_ADDED git-svn-id: svn://ttmath.org/publicrep/winix/trunk@808 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -429,11 +429,7 @@ void tickets_tab_conf_tab(Info & i)
|
||||
|
||||
if( tickets_value.is_ticket )
|
||||
{
|
||||
if( !i.is_for || i.is_for_first_iter )
|
||||
conf_index = 0;
|
||||
else
|
||||
conf_index += 1;
|
||||
|
||||
conf_index = i.iter;
|
||||
PT::Space & space = *ticket_info.cur_conf;
|
||||
|
||||
while( conf_index < space.spaces.size() && space.spaces[conf_index]->name != L"param" )
|
||||
@@ -522,11 +518,7 @@ void ticket_tab(Info & i)
|
||||
ticket_tab_check_reqid();
|
||||
value.Clear();
|
||||
|
||||
if( !i.is_for || i.is_for_first_iter )
|
||||
conf_index = 0;
|
||||
else
|
||||
conf_index += 1;
|
||||
|
||||
conf_index = i.iter;
|
||||
PT::Space & space = *ticket_info.cur_conf;
|
||||
|
||||
while( conf_index < space.spaces.size() && space.spaces[conf_index]->name != L"param" )
|
||||
@@ -622,11 +614,7 @@ void ticket_tab_select_tab(Info & i)
|
||||
|
||||
if( value.is_param )
|
||||
{
|
||||
if( !i.is_for || i.is_for_first_iter )
|
||||
select_index = 0;
|
||||
else
|
||||
select_index += 1;
|
||||
|
||||
select_index = i.iter;
|
||||
PT::Space & sp = *value.config_par;
|
||||
|
||||
while( select_index < sp.spaces.size() && sp.spaces[select_index]->name != L"option" )
|
||||
@@ -711,16 +699,11 @@ void ticket_tab_file_tab(Info & i)
|
||||
|
||||
if( value.is_value && !value.is_in_ticket_par )
|
||||
{
|
||||
if( !i.is_for || i.is_for_first_iter )
|
||||
{
|
||||
ticket_file_index = 0;
|
||||
ticket_file_number = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
ticket_file_index += 1;
|
||||
}
|
||||
ticket_file_index = i.iter;
|
||||
|
||||
if( i.iter == 0 )
|
||||
ticket_file_number = 0;
|
||||
|
||||
PT::Space & mt = *value.value_meta;
|
||||
|
||||
while( ticket_file_index < mt.spaces.size() && mt.spaces[ticket_file_index]->name != L"file" )
|
||||
@@ -728,7 +711,7 @@ void ticket_tab_file_tab(Info & i)
|
||||
|
||||
i.res = (ticket_file_index < mt.spaces.size());
|
||||
|
||||
if( i.res && i.is_for && i.iter > 0 )
|
||||
if( i.res && i.iter > 0 )
|
||||
ticket_file_number += 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user