[.note: I'm probably overlooking something
because I'm frantically fixing things before
I leave WHO.]
In comp/widgets/story_prof/list_categories.html ,
where the 'Add Category' button is added, there is this:
% my $all_cats = [.
% grep { ! $curr_cats->{$_->get_id} && chk_authz($_, READ, 1) }
% $cat_pkg->list({ site_id => $story->get_site_id })
% ];
% if (scalar @$all_cats) {
<div class="actions">
<& '/widgets/profile/button.mc',
disp => $lang->maketext("Add Category"),
name => 'add_category_button',
button => 'add_category_lgreen',
useTable => 0,
js => qq{onclick="catListMan.add('new_category_uri'); return false"}
&>
....
If I'm reading that correctly, it does a list
of ALL CATEGORIES for the current site in order
to check if it should display the button, right?
(Users were reporting that the UI was slow,
maybe this was it, hmm...)
because I'm frantically fixing things before
I leave WHO.]
In comp/widgets/story_prof/list_categories.html ,
where the 'Add Category' button is added, there is this:
% my $all_cats = [.
% grep { ! $curr_cats->{$_->get_id} && chk_authz($_, READ, 1) }
% $cat_pkg->list({ site_id => $story->get_site_id })
% ];
% if (scalar @$all_cats) {
<div class="actions">
<& '/widgets/profile/button.mc',
disp => $lang->maketext("Add Category"),
name => 'add_category_button',
button => 'add_category_lgreen',
useTable => 0,
js => qq{onclick="catListMan.add('new_category_uri'); return false"}
&>
....
If I'm reading that correctly, it does a list
of ALL CATEGORIES for the current site in order
to check if it should display the button, right?
(Users were reporting that the UI was slow,
maybe this was it, hmm...)