Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: Add support for partial blocks
Closes wikimedia-gadgets#802. - Move partial field to block options, better place - Select partial block template and hide article if partial (MA smart as fuck, use pageparam and reasonparam) - add hidden partial to field (helps build query and preview) - Build rest of query - Add defaultToPartialBlocks preference option - Only show tooltip if partial - Add checks for no talk editing and noemail/nocreate - Don't disable partial block button, can add pblock template - Better previous block log message - Use a global variable for formatted namespace. Empty string no good; Morebits.wikipedia.namespacesFriendly previously handled this, removed in wikimedia-gadgets#600 Use select2 This system needs multiple user inputs, which can't be done nicely with chosen (See harvesthq/chosen#166). Can use select2's tags system. Can't stop multiselect from showing dropdown: - the empty string is awful - minimumResultsForSearch: -1 doesn't work, nor does infinity - dropdownCss and dropdownCssClass require the full version (https://stackoverflow.com/a/22138303/2521092) - css stuff applies to both(?) absent the above - dropdownParent: $form.find('[name=pagerestrictions]') weirdly works (puts it somewhere invisible?) but breaks scrolling without a visual cue
- Loading branch information