fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-09-01 11:08 am

[dw-free] Views cannot set the active resource group

[commit: http://hg.dwscoalition.org/dw-free/rev/232430f6e041]

http://bugs.dwscoalition.org/show_bug.cgi?id=2999

Allow views to choose whether they're using the jQuery library or the old
library.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/DW/Template/Plugin.pm
--------------------------------------------------------------------------------
diff -r 21401aa19753 -r 232430f6e041 cgi-bin/DW/Template/Plugin.pm
--- a/cgi-bin/DW/Template/Plugin.pm	Tue Aug 31 17:47:56 2010 +0800
+++ b/cgi-bin/DW/Template/Plugin.pm	Wed Sep 01 19:08:37 2010 +0800
@@ -58,6 +58,16 @@ sub need_res {
     return LJ::need_res( @_ );
 }
 
+=head2 active_resource_group
+
+Set the resource group to be loaded for this page.
+
+=cut
+
+sub active_resource_group {
+    return LJ::set_active_resource_group( $_[1] );
+}
+
 =head2 ml_scope
 
 Get or set the ML scope of the template
--------------------------------------------------------------------------------