Committer: wisest-owl
LJSUP-7518: Add checkboxes for removing posts from Top entries admin tool [tags: dpetrov]U trunk/htdocs/admin/topentries.bml
Modified: trunk/htdocs/admin/topentries.bml =================================================================== --- trunk/htdocs/admin/topentries.bml 2010-12-13 04:58:30 UTC (rev 17906) +++ trunk/htdocs/admin/topentries.bml 2010-12-13 05:04:41 UTC (rev 17907) @@ -9,7 +9,7 @@ use LJ::Widget::TopEntries; use LJ::TopEntries; - LJ::need_res('stc/framework/modules.css'); + LJ::need_res('js/admin/topentries.js', 'stc/framework/modules.css'); my $remote = LJ::get_remote(); my $domain = $POST{domain} || $GET{domain} || 'hmp_ontd'; # widgets domain @@ -118,7 +118,8 @@ $ret .= "</table><br />\n"; if (my @posts = $top_entries->get_featured_posts(raw => 1)){ - $ret .= qq|<h3>Added Posts</h3><ul>|; + $ret .= qq|<h3>Added Posts</h3><ul id="delete-posts">|; + $ret .= "<li><input type=\"checkbox\" name==\"selectall\" /> - Select all</li>"; foreach my $post (@posts) { $ret .= qq|<li>