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

[dw-nonfree] change order of need_res calls

[commit: http://hg.dwscoalition.org/dw-nonfree/rev/d05b7be9cdb3]

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

Set the ordering for dw-nonfree site schemes.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/bml/scheme/tropo-purple.look
  • cgi-bin/bml/scheme/tropo-red.look
--------------------------------------------------------------------------------
diff -r 3a476692625f -r d05b7be9cdb3 cgi-bin/bml/scheme/tropo-purple.look
--- a/cgi-bin/bml/scheme/tropo-purple.look	Thu Jun 10 07:51:16 2010 -0500
+++ b/cgi-bin/bml/scheme/tropo-purple.look	Fri Jun 11 13:55:46 2010 +0800
@@ -39,15 +39,15 @@ head<=
     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
     <?_code
-        LJ::need_res( "stc/lj_base-app.css" );
-        LJ::need_res( "stc/tropo/reset.css" );
-        LJ::need_res( "stc/tropo/tropo-base.css" );
-        LJ::need_res( "stc/tropo/tropo-purple.css" );
+        LJ::need_res( { priority => $LJ::SCHEME_RES_PRIORITY }, "stc/lj_base-app.css" );
+        LJ::need_res( { priority => $LJ::SCHEME_RES_PRIORITY }, "stc/tropo/reset.css" );
+        LJ::need_res( { priority => $LJ::SCHEME_RES_PRIORITY }, "stc/tropo/tropo-base.css" );
+        LJ::need_res( { priority => $LJ::SCHEME_RES_PRIORITY }, "stc/tropo/tropo-purple.css" );
 
         # we support both old style and new style pages; only one of these will get
         # loaded ...
-        LJ::need_res( {group=>'jquery'}, "js/nav-jquery.js" );
-        LJ::need_res( {group=>'default'}, "js/nav.js" );
+        LJ::need_res( { group => 'jquery', priority => $LJ::SCHEME_RES_PRIORITY }, "js/nav-jquery.js" );
+        LJ::need_res( { group => 'default', priority => $LJ::SCHEME_RES_PRIORITY }, "js/nav.js" );
     _code?>
     <?_code LJ::res_includes(); _code?>
 
diff -r 3a476692625f -r d05b7be9cdb3 cgi-bin/bml/scheme/tropo-red.look
--- a/cgi-bin/bml/scheme/tropo-red.look	Thu Jun 10 07:51:16 2010 -0500
+++ b/cgi-bin/bml/scheme/tropo-red.look	Fri Jun 11 13:55:46 2010 +0800
@@ -39,15 +39,15 @@ head<=
     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
     <?_code
-        LJ::need_res( "stc/lj_base-app.css" );
-        LJ::need_res( "stc/tropo/reset.css" );
-        LJ::need_res( "stc/tropo/tropo-base.css" );
-        LJ::need_res( "stc/tropo/tropo-red.css" );
+        LJ::need_res( { priority => $LJ::SCHEME_RES_PRIORITY }, "stc/lj_base-app.css" );
+        LJ::need_res( { priority => $LJ::SCHEME_RES_PRIORITY }, "stc/tropo/reset.css" );
+        LJ::need_res( { priority => $LJ::SCHEME_RES_PRIORITY }, "stc/tropo/tropo-base.css" );
+        LJ::need_res( { priority => $LJ::SCHEME_RES_PRIORITY }, "stc/tropo/tropo-red.css" );
 
         # we support both old style and new style pages; only one of these will get
         # loaded ...
-        LJ::need_res( {group=>'jquery'}, "js/nav-jquery.js" );
-        LJ::need_res( {group=>'default'}, "js/nav.js" );
+        LJ::need_res( { group => 'jquery', priority => $LJ::SCHEME_RES_PRIORITY }, "js/nav-jquery.js" );
+        LJ::need_res( { group => 'default', priority => $LJ::SCHEME_RES_PRIORITY }, "js/nav.js" );
     _code?>
     <?_code LJ::res_includes(); _code?>
 
--------------------------------------------------------------------------------