vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r10060: LJSUP-7973: Link does not appear correct...

Committer: vad
LJSUP-7973: Link does not appear correctly on custom styles
U   trunk/cgi-bin/LJ/Hooks/Customize.pm
Modified: trunk/cgi-bin/LJ/Hooks/Customize.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Customize.pm	2011-02-17 03:46:43 UTC (rev 10059)
+++ trunk/cgi-bin/LJ/Hooks/Customize.pm	2011-02-17 07:20:16 UTC (rev 10060)
@@ -351,4 +351,15 @@
     return;
 });
 
+
+LJ::register_hook('need_res_for_journals', sub {
+    my $u = shift;
+
+    require Apache::WURFL;
+    if (!$LJ::DISABLED{'view_mobile_link_always'} || Apache::WURFL->is_mobile()) {
+        LJ::need_res('stc/show-mobile-link.css');
+    }
+
+});
+
 1;

Tags: ljcom, pm, vadvs
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