Utente:Sanjilops/monobook.js: differenze tra le versioni

nessun oggetto della modifica
Nessun oggetto della modifica
Nessun oggetto della modifica
 
(7 versioni intermedie di un altro utente non mostrate)
Riga 1:
//disableHideEdit = true;
//disablehideEdit=1;
disablealertLoaddisableAlert = true;
disableaprilfish = 1true;
disablereftooltipdisableRefTooltip = false;
 
 
Riga 145:
if (["MediaWiki:Common.css", "MediaWiki:Monobook.css", "MediaWiki:Common.js", "MediaWiki:Monobook.js", "Utente:" + wgUserName + "/monobook.css", "Utente:" + wgUserName + "/monobook.js"].indexOf(wgPageName) == -1)
quickpreview_load();
$("#wpTextbox1").bind('mouseup keyup cutfocus pastechange', quickedit_switch).blur(function() {setTimeout(quickedit_switch, 300);});
var c = document.createElement('span');
Riga 189:
var temp = $("#quicksave_msgbox")[0];
if (!temp) {
temp = document.insertBefore$(document.createElement('div'), ).insertBefore($("#editform")[0]).attr('id', "quicksave_msgbox");
var msg_box_closemsg_box = temp[0].appendChild(document.createElement('spandiv'));
temp.id = "quicksave_msgbox";
var msg_box = temp.appendChildappend(document.createElement('divspan')).attr('id', "quicksave_msgbox_close").text('×').click( function () { $("#quicksave_msgbox").hide("slow"); });
var msg_box_close = temp.appendChild(document.createElement('span'));
msg_box_close.id = "quicksave_msgbox_close";
msg_box_close.innerHTML = '×';
$(msg_box_close).click( function () { $("#quicksave_msgbox").hide("slow"); });
}
else {
Line 215 ⟶ 211:
var Watched = $("#wpWatchthis")[0].checked;
if ($("#ca-watch")[0] && Watched) {
$("#ca-watch a").text(wgAjaxWatch["watchingMsg"].toLowerCase());
param += "&watchlist=watch";
}
if ($("#ca-unwatch")[0] && !Watched) {
$("#ca-unwatch a").text(wgAjaxWatch["unwatchingMsg"].toLowerCase());
param += "&watchlist=unwatch";
}
Line 451 ⟶ 447:
 
function quickpreview (after_save) {
if (after_save == undefined) after_save = false;
$("#quickpreviewButton, #quickdiffButton").attr('disabled','disabled');
$('body').css('cursor','progress');
Line 548 ⟶ 545:
}
else templatesList.innerHTML = '';
R = o.responseXML.getElementsByTagName('categoriestemplates')[0].getElementsByTagName('tl');
if (R.length > 0) {
var name;
Line 554 ⟶ 551:
for (i in R) {
name = R.item(i).firstChild.nodeValue;
if (R.item(i).getAttribute('exists') != undefined)
temp += "<li" + "><a title='" + name + "' href='/wiki/" + encodeURI(name) + "'>" + name + "</a> (<a href='/index.php?title=" + encodeURI(name) + "&action=edit&editintro=Mediawiki:Editintro'>modifica</a>)</li>";
else
Line 680 ⟶ 677:
$('body').css('cursor','progress');
if ($("#diff-css").length == 0)
$(document.createElement('link')).attr({'href': "h" + "ttp://images.wikia.com/common/__cb34808/skins/common/diff.css?34808", 'rel':'stylesheet', 'id':"diff-css"}).appendTo($('head'));
 
var $diffArea = $("#wikidiffwikiDiff");
if ($diffArea.length == 0) {
$diffArea = $(document.createElement('div')).attr('id', "wikidiffwikiDiff").insertBefore("#editform");
var $diffTable = $(document.createElement('table')).addClass("diff").appendTo($diffArea);
$diffTable.html("<colgroup><col class='diff-marker'><col class='diff-content'><col class='diff-marker'><col class='diff-content'></colgroup><tr valign='top'><td class='diff-otitle' colspan='2'>Versione attuale</td><td class='diff-ntitle' colspan='2'>Il tuo testo</td></tr>");
Line 697 ⟶ 694:
var section = $("[name=wpSection]").val();
if (section && section != "new") param += "&rvsection=" + section;
param += "&rvdifftotext=" + encodeURIComponent($("#wpTextbox1").val());
var httpRequest = createRequest();
var id = setTimeout(function() { httpRequest.abort(); alert("Errore: il server non risponde"); Finish(false); }, 15000);
0

contributi