MediaWiki:Gadget-morebits.js: Difference between revisions
Content deleted Content added
Amorymeltzer (talk | contribs) Repo at ab124a59: Note Morebits.ip in header; Add Morebits.ip.isRange to simplify use of mw.util.isIPAddress; Reorganize IP utilities into Morebits.ip object; test if IP range within CIDR limits; use to limit block and arv; Morebits.get64 to get the /64 subnet an IPv6 address; Correct jquery dialog event name; parseInt number to be nice, throw if NaN |
Amorymeltzer (talk | contribs) Repo at dafea6cd: Return the promise from the render API |
||
Line 4,464:
* @param {string} [pageTitle] - Optional parameter for the page this should be rendered as being on, if omitted it is taken as the current page.
* @param {string} [sectionTitle] - If provided, render the text as a new section using this as the title.
* @returns {jQuery.promise}
*/
this.beginRender = function(wikitext, pageTitle, sectionTitle) {
Line 4,486 ⟶ 4,487:
}
var renderApi = new Morebits.wiki.api('loading...', query, fnRenderSuccess, new Morebits.status('Preview'));
return renderApi.post();
};
|