Utente:Jalo/monobook.js/test: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 678:
function addTextAtCursor(myValue,summary,myValue2="") {
alert(myValue +" "+ summary +" "+ myValue2);
wpTextbox1=document.getElementById("wpTextbox1");
//IE support
Riga 692 ⟶ 693:
else if (wpTextbox1.selectionStart || wpTextbox1.selectionStart == '0')
{
alert("in else");
var startPos = wpTextbox1.selectionStart;
var endPos = wpTextbox1.selectionEnd;
alert("before if");
if (myValue2 != "")
{
alert("in if again");
wpTextbox1.value = wpTextbox1.value.substring(0, startPos)
+ myValue + wpTextbox1.value.substring(startPos,endPos-startPos) + myValue2
+ wpTextbox1.value.substring(endPos, wpTextbox1.value.length);
}
else
{
alert("in else again");
wpTextbox1.value = wpTextbox1.value.substring(0, startPos)
+ myValue
+ wpTextbox1.value.substring(endPos, wpTextbox1.value.length);
}
} else {
wpTextbox1.value += myValue;
Riga 708 ⟶ 717:
summ.value=summ.value+summary;
document.getElementById("wpMinoredit").checked=1
alert("out of all");
}
|