Content deleted Content added
Writ Keeper (talk | contribs) back online |
Writ Keeper (talk | contribs) adding prompt |
||
Line 47:
{
submitForm = document.getElementById("TBSubmit" + i);
var questionTitle = prompt("Please enter the title of the question you're replying to (or just leave it blank):","");
submitForm.innerHTML = '<input type="hidden" name="wpTextbox1" value="{{Wikipedia:Teahouse/Teahouse talkback|WP:Teahouse/Questions|ts='+'~~'+'~~'+'}}">\n<input type="hidden" name="wpSection" value="new">\n<input type="hidden" name="wpEditToken" value="' + mw.user.tokens.get( 'editToken' ) + '">\n<input type="hidden" name="wpStarttime" value="' + timestamp + '">\n<input type="hidden" name="wpEdittime" value="' + timestamp + '">\n<input type="hidden" name="wpSummary" value="Teahouse talkback: you\'ve got messages!">';▼
var sectionTitle = "{{Wikipedia:Teahouse/Teahouse talkback|WP:Teahouse/Questions|";
if(questionTitle == null || questionTitle == "")
{
sectionTitle += "ts=~~"+"~~}}";
}
else
{
sectionTitle += questionTitle +"|ts=~~"+"~~}}";
}
▲ submitForm.innerHTML = '<input type="hidden" name="wpTextbox1" value="
submitForm.submit();
}
|