can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r18256: LJSUP-7240: ControlStrip

Committer: dpetrov
LJSUP-7240: ControlStrip
U   trunk/htdocs/js/controlstrip.js
Modified: trunk/htdocs/js/controlstrip.js
===================================================================
--- trunk/htdocs/js/controlstrip.js	2011-02-10 08:46:54 UTC (rev 18255)
+++ trunk/htdocs/js/controlstrip.js	2011-02-10 08:49:12 UTC (rev 18256)
@@ -16,9 +16,9 @@
 
 var CONFIG = {
 	rootSelector: ".w-cs",
-	overlaysSelectors: [".w-cs-share", ".w-cs-filter", ".i-calendar"],
+	overlaysSelectors: [".w-cs-share", ".w-cs-filter", ".w-cs-i-calendar", ".w-cs-i-like"],
 	showOverlayClass: "w-cs-hover",
-	calendarSelector: ".i-calendar"
+	calendarSelector: ".w-cs-i-calendar"
 }
 
 var options, elements;
@@ -60,7 +60,22 @@
 				$this.removeClass( options.showOverlayClass );
 			}, 600 );
 		} );
+
+		$this.mousedown( function( ev ) {
+			ev.stopPropagation();
+		} );
+
+		$this.children( 'a' ).click( function( ev ) {
+			ev.stopPropagation();
+			ev.preventDefault();
+		} );
+
 	} );
+
+	jQuery( document ).mousedown(function( ev ) {
+		nodes.removeClass( options.showOverlayClass );
+		ev.stopPropagation();
+	} );
 };
 
 ControlStrip.Calendar = function( o ) {
@@ -74,13 +89,16 @@
 		o.startAtSunday = ControlStrip.Calendar.StartAtSunday;
 	}
 
+	/*
 	var onFetch = function( onload ) {
 		jQuery.getJSON( LiveJournal.getAjaxUrl('get_posting_days'),
 			{ journal: Site.currentJournal }, onload );
 	}
-
+	*/
 	this.calendar( {
-		onFetch: onFetch,
+		//onFetch: onFetch,
+		dayRef: Site.remoteJournalBase + "/friends/?date=%Y-%M-%D",
+		allRefs: true,
 		activeUntil: new Date(),
 		startMonth: new Date( 1999, 3, 1 ),
 		endMonth: new Date()

Tags: can3p, js, livejournal
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