mNo edit summary Tag: sourceedit |
No edit summary Tag: sourceedit |
||
Line 9: | Line 9: | ||
} |
} |
||
}); |
}); |
||
− | |||
− | /* RTEdit */ |
||
− | var pedroVE = document.getElementById("ca-ve-edit").parentNode; |
||
− | var pedroRTE = pedroVE.cloneNode(true); |
||
− | alert(pedroRTE.outerHTML); |
||
− | pedroRTE.innerHTML = pedroRTE.innerHTML.replace('veaction=edit', "action=edit&useeditor=wysiwyg"); |
||
− | pedroRTE.firstChild.removeAttribute("data-id"); |
||
− | pedroRTE.firstChild.removeAttribute("id"); |
||
− | pedroRTE.firstChild.removeAttribute("accesskey"); |
||
− | alert(pedroRTE.outerHTML); |
||
− | pedroRTE.firstChild.innerHTML = "RTE"; |
||
− | pedroVE.parentNode.insertBefore(pedroRTE,pedroVE); |
Revision as of 00:21, 10 June 2016
/* Fix crappy search */
document.getElementById("searchForm").addEventListener ("submit", function(event) {
"use strict";
var suchText = document.getElementById("searchInput").value;
if (suchText.indexOf(":") != -1) {
event.preventDefault();
//event.stopPropagation();
window.location = '/wiki/' + encodeURI(suchText);
}
});