Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[ljcom] r12887: LJINT-491: Commenting system works incor...

Committer: anazarov
LJINT-491: Commenting system works incorrect for side projects
U   trunk/cgi-bin/LJ/PartnerSite.pm
Modified: trunk/cgi-bin/LJ/PartnerSite.pm
===================================================================
--- trunk/cgi-bin/LJ/PartnerSite.pm	2012-11-13 14:05:48 UTC (rev 12886)
+++ trunk/cgi-bin/LJ/PartnerSite.pm	2012-11-13 14:26:10 UTC (rev 12887)
@@ -650,27 +650,34 @@
 
     LJ::need_res( { 'clean_list' => 1 } );
 
-    LJ::need_res(qw( 
+    LJ::need_res(qw{
         js/jquery.js
+        js/core/console.js
+        js/core/template.js
 
         js/lib/jquery-ui/jquery.ui.core.min.js
         js/lib/jquery-ui/jquery.ui.widget.min.js
         
         js/jquery/jquery.lj.basicWidget.js
         js/jquery/jquery.lj.bubble.js
+        js/jquery/jquery.tmpl.min.js
         js/partners/placeholder.js
         stc/lj_base.css 
-        stc/identity/identity.css ),
-         'stc/partners/login/v' . $self->widget_version . '.css' 
-    );
+        stc/identity/identity.css
 
+        templates/Widgets/contextualhover.jqtmpl
+        templates/Widgets/bubble.tmpl
+    });
+
+    LJ::need_res(join $self->widget_version, 'stc/partners/login/v', '.css');
+
     my $additional_lj_resources = $self->lj_resources;
     LJ::need_res(@$additional_lj_resources) if $additional_lj_resources;
 
-    my $res = LJ::res_includes( {'only_needed' => 1} ) || '';
-    my $raw_res = $self->raw_resources($opts) || '';
-    return $res . $raw_res;
-    
+    return join '',
+        LJ::res_includes({ only_needed => 1 } ) || '',
+        LJ::res_includes({ only_tmpl => 1 }) || '',
+        $self->raw_resources($opts) || '';
 }
 
 sub raw_resources {

Tags: anazarov, ljcom, nfokz, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments