can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r20176: LJSUP-9254: Redesign of conetxtual popup...

Committer: dpetrov
LJSUP-9254: Redesign of conetxtual popup hover
U   trunk/htdocs/js/contextualhover.js
Modified: trunk/htdocs/js/contextualhover.js
===================================================================
--- trunk/htdocs/js/contextualhover.js	2011-09-30 02:21:19 UTC (rev 20175)
+++ trunk/htdocs/js/contextualhover.js	2011-09-30 02:39:14 UTC (rev 20176)
@@ -174,11 +174,6 @@
 					ContextualPopup.hideHourglass();
 				}
 			});
-
-			wrapper.closest(this.selectors.bubble).addClass(this.classNames.popup)
-				.mouseover(function(ev) {
-					ev.stopPropagation();
-				});
 		},
 
 		show: function() {
@@ -641,8 +636,12 @@
 			
 			ContextualPopup.hideHourglass();
 			ContextualPopup.hourglass = jQuery(e).hourglass(xhr)[0];
+			//entering mouse on the hourglass should no close popup
+			jQuery(ContextualPopup.hourglass.ele).bind('mouseenter', function(ev) {
+				popup.element.trigger('mouseenter');
+			});
 			// so mousing over hourglass doesn't make ctxpopup think mouse is outside
-			ContextualPopup.hourglass.add_class_name('lj_hourglass ContextualPopup');
+			ContextualPopup.hourglass.add_class_name('lj_hourglass');
 			
 			return false;
 		},

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