User:Terasail/Edit Request Tool.js: Difference between revisions

Content deleted Content added
Add fix for Vector Legacy
Remove text colour for dark mode compatability
Line 69:
let boxType = editRequest.dataset.origlevel;
boxType = boxType.replace("full", "fully");
$('<table style="border:1px solid #A2A9B1; border-radius:2px; padding:10px 16px 0; margin:auto; max-width:55em; width:100%; clear:both;"><tr><td style="color:#808080"><div style="font-style:italic; margin-left:1em;">There are currently ' + watchStatus[0] + ' users watching this page (' + watchStatus[1] + ' have viewed recent edits).</div><div>Quick options:</div></td></tr><tr style="display: flex; justify-content: center;"><td class="response-quick"></td></tr><tr><td style="color:#808080">Custom response:</td></tr><tr style="text-align:center;"><td class="response-custom"></td></tr><tr style="background:#F6F6F6;"><td class="response-preview" style="display:none;"><div style="color:#808080">Preview:</div><div></div></td></tr><tr style="display: flex; justify-content: right;"><td class="response-controls"></td></tr></table>').insertAfter(editRequest);
let responseBox = editRequest.nextElementSibling;
let responseQuick = $(responseBox).find('.response-quick')[0];