MediaWiki:Gadget-morebits.js: Difference between revisions

Content deleted Content added
Repo at 6d69a4b: fix dark mode (#1982); change default label from "Submit Query" to "Submit" (#1865)
Repo at 4a07910: Add dark mode compatibility to Twinkle (#2023)
Line 472:
}
var select = node.appendChild(document.createElement('select'));
// opt out of dark mode for now
select.classList.add('notheme');
if (data.event) {
select.addEventListener('change', data.event, false);
Line 676 ⟶ 674:
 
subnode = node.appendChild(document.createElement('input'));
// opt out of dark mode for now
subnode.classList.add('notheme');
 
subnode.setAttribute('name', data.name);
 
Line 868 ⟶ 863:
}
subnode = node.appendChild(document.createElement('textarea'));
// opt out of dark mode for now
subnode.classList.add('notheme');
subnode.setAttribute('name', data.name);
if (data.cols) {
Line 5,869 ⟶ 5,862:
// resize the scrollbox with the dialog, if one is present
$widget.resizable('option', 'alsoResize', '#' + this.content.id + ' .morebits-scrollbox, #' + this.content.id);
 
// add skin-invert to "close" button
$('.morebits-dialog .ui-dialog-titlebar-close').addClass('skin-invert');
};