Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[livejournal] r16311: LJSUP-5547: fix Contexual hover for IE.

Committer: pkornilov
LJSUP-5547: fix Contexual hover for IE.
U   trunk/htdocs/js/contextualhover.js
Modified: trunk/htdocs/js/contextualhover.js
===================================================================
--- trunk/htdocs/js/contextualhover.js	2010-03-03 09:19:40 UTC (rev 16310)
+++ trunk/htdocs/js/contextualhover.js	2010-03-03 10:15:19 UTC (rev 16311)
@@ -793,8 +793,8 @@
 				ContextualPopup.changeRelation(data, ctxPopupId, data.is_member ? 'leave' : 'join', e);
 			}
 		})
-		.after('<br/>')
 		.appendTo(content);
+		content.appendChild(document.createElement('br'));
 	}
 	
 	// send message
@@ -803,8 +803,8 @@
 			href: data.url_message,
 			text: data.ml_send_message
 		})
-		.after('<br/>')
 		.appendTo(content);
+		content.appendChild(document.createElement('br'));
 	}
 	
 	// add/remove friend link
@@ -826,8 +826,8 @@
 					return data.is_friend ? data.ml_remove_friend : data.ml_add_friend;
 			}
 		})
-		.after('<br/>')
 		.appendTo(content);
+		content.appendChild(document.createElement('br'));
 	}
 	
 	// vgift;
@@ -836,8 +836,8 @@
 			href: Site.siteroot + '/shop/vgift.bml?to=' + data.username,
 			text: data.ml_send_gift
 		})
-		.after('<br/>')
 		.appendTo(content);
+		content.appendChild(document.createElement('br'));
 	}
 	
 	if (data.is_logged_in && !data.is_requester && !data.is_comm && !data.is_syndicated) {
@@ -879,8 +879,8 @@
 				ContextualPopup.changeRelation(data, ctxPopupId, action, e);
 			}
 		})
-		.after('<br/>')
 		.appendTo(content);
+		content.appendChild(document.createElement('br'));
 	}
 	
 	// view label

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