Committer: esavintcev
LJSUP-7758: Delete bubbleU trunk/htdocs/js/commentmanage.js
Modified: trunk/htdocs/js/commentmanage.js =================================================================== --- trunk/htdocs/js/commentmanage.js 2011-02-04 02:52:33 UTC (rev 18208) +++ trunk/htdocs/js/commentmanage.js 2011-02-04 03:37:47 UTC (rev 18209) @@ -266,12 +266,12 @@ 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 b-popup" style="text-align:left;position:absolute;visibility:hidden;width:250px;left:0;top:0;z-index:3"><div class="b-popup-outer"><div class="b-popup-inner"><div class="ljcmtmanage-content"></div><i class="i-popup-arr i-popup-arrt"></i><i class="i-popup-close"></i></div></div></div>') .click(function(e){ e.stopPropagation() }); - var inHTML = "<form style='display: inline' id='ljdelopts" + dItemid + "'><span style='font-face: Arial; font-size: 8pt'><b>Delete comment?</b><br />"; + var inHTML = "<form style='display: inline' id='ljdelopts" + dItemid + "'><span style='font-face: Arial; font-size: 8pt'><strong>Delete comment?</strong><br />"; var lbl; if (com.username != "" && com.username != remoteUser && canAdmin) { lbl = "ljpopdel" + dItemid + "ban"; @@ -300,9 +300,9 @@ finalHeight -= 15; } - inHTML += "<input type='button' value='Delete' onclick='deleteComment(" + dItemid + ", " + isS1.toString() + ");' /> <input type='button' value='Cancel' onclick='killPopup()' /></span><br /><span style='font-face: Arial; font-size: 8pt'><i>shift-click to delete without options</i></span></form>"; + inHTML += "<input type='button' value='Delete' onclick='deleteComment(" + dItemid + ", " + isS1.toString() + ");' /> <input type='button' value='Cancel' onclick='killPopup()' /></span><br /><div class='b-bubble b-bubble-alert b-bubble-noarrow'><i class='i-bubble-arrow-border'></i><i class='i-bubble-arrow'></i>Shift+click to delete without options</div></form>"; - de.html(inHTML).insertAfter(ae); + de.find('.ljcmtmanage-content').html(inHTML).end().insertAfter(ae); //calc with viewport top = Math.min(top, $window.height() + $window.scrollTop() - de.outerHeight() + pos_offset.top - offset.top); @@ -584,4 +584,3 @@ jQuery(function(){setupAjax( false, ("is_s1" in LJ_cmtinfo ) )}); DOM.addEventListener(document, 'click', docClicked); -document.write("<style> div.ljcmtmanage { color: #000; background: #e0e0e0; border: 2px solid #000; padding: 3px; }</style>");