User:MC10/stubtagtab.js: Difference between revisions

Content deleted Content added
fix variable error
use .val()
Line 79:
var x = decodeURIComponent(___location.href.split("&autoaddstubtag=")[1]);
if (x.indexOf("-stub") === -1) x += "-stub";
$('#wpTextbox1').valueval($('#wpTextbox1').valueval() + "\n{" + "{" + x + "}}"); // add to the end of the article
$('#wpSummary').valueval("Tagging with {" + "{" + x + "}} using [[User:MC10/stubtagtab.js|stubtagtab.js]]");
$('#wpPreview').trigger('click');
}