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

[livejournal] r16205: LJSV-931: Functions on the "delete comme...

Committer: pkornilov
LJSV-931: Functions on the "delete comment" button do not work.
U   trunk/htdocs/js/commentmanage.js
Modified: trunk/htdocs/js/commentmanage.js
===================================================================
--- trunk/htdocs/js/commentmanage.js	2010-02-03 11:40:45 UTC (rev 16204)
+++ trunk/htdocs/js/commentmanage.js	2010-02-05 06:11:27 UTC (rev 16205)
@@ -253,13 +253,11 @@
 				return Event.stop(e);
 			}
 			
-			var de = jQuery('<div class="ljcmtmanage" style="text-align:left;position:absolute;visibility:hidden;width:250px;left:0;top:0;z-index:3"></div>');
+			var de = jQuery('<div class="ljcmtmanage" style="text-align:left;position:absolute;visibility:hidden;width:250px;left:0;top:0;z-index:3"></div>')
+						.click(function(e){
+							e.stopPropagation()
+						});
 			
-            DOM.addEventListener(de, 'click', function (e) {
-                Event.stopPropagation(e);
-                return true;
-            });
-
             var inHTML = "<form style='display: inline' id='ljdelopts" + dItemid + "'><span style='font-face: Arial; font-size: 8pt'><b>Delete comment?</b><br />";
             var lbl;
             if (com.u != "" && com.u != remoteUser && canAdmin) {

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