View source for MediaWiki:Common.js
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
importScript('MediaWiki:Overlays.js');
importScript('MediaWiki:Insertions.js');
importScript('MediaWiki:Lineation.js');
importScript('MediaWiki:AutoLoad.js');
importScript('MediaWiki:Compare.js');
/* Any JavaScript here will be loaded for all users on every page load. */
function saveDivContentAsSubpage(currentPage, divID) {
console.log("[SaveDiv] Starting saveDivContentAsSubpage");
console.log("[SaveDiv] Provided currentPage:", currentPage);
console.log("[SaveDiv] Provided divID:", divID);
var api = new mw.Api();
if (typeof currentPage !== "string" || !currentPage) {
var divTrigger = document.getElementById(divID);
if (divTrigger && divTrigger.textContent) {
currentPage = divTrigger.textContent.trim();
000
1:0
Return to MediaWiki:Common.js.