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

[ljcom] r12417: LJSUP-13187: Contextual menu is not appe...

Committer: anazarov
LJSUP-13187: Contextual menu is not appears if lj_controlstrip is disabled
U   trunk/htdocs/js/s2.js
Modified: trunk/htdocs/js/s2.js
===================================================================
--- trunk/htdocs/js/s2.js	2012-08-05 22:08:35 UTC (rev 12416)
+++ trunk/htdocs/js/s2.js	2012-08-06 05:33:20 UTC (rev 12417)
@@ -2,7 +2,10 @@
 	"use strict";
 
 	LiveJournal.register_hook('page_load', function() {
-		$('.sidebar-cal' ).inlineCalendar( {
+		/* Nothing to do if widget was not loaded */
+		if (!$.fn.hasOwnProperty('inlineCalendar')) { return; }
+
+		$('.sidebar-cal').inlineCalendar( {
 			selectors: {
 				month: '.sbar-cal-nav-month',
 				year:  '.sbar-cal-nav-year',

Tags: anazarov, js, ljcom, nfokz
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