Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: devel
story profile Add Category button lists all cats?
 

Index | Next | Previous | View Flat


lannings at who

Apr 15, 2009, 6:57 AM


Views: 1185
Permalink
story profile Add Category button lists all cats?

[.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...)

Subject User Time
story profile Add Category button lists all cats? lannings at who Apr 15, 2009, 6:57 AM
    Re: story profile Add Category button lists all cats? david at kineticode Apr 15, 2009, 8:40 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.