Widget:AddWBRQuestion: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
No edit summary
Matt Pijoan (talk | contribs)
No edit summary
Line 24: Line 24:
$title = $xml.find("text");
$title = $xml.find("text");
var curr = parseInt($title.text());
var curr = parseInt($title.text());
window.location.replace("http://www.wikidoc.org/index.php/Special:FormEdit/WBRQuestion/WBR" + curr");
window.location.replace("http://www.wikidoc.org/index.php/Special:FormEdit/WBRQuestion/WBR" + curr);
addNewSection("WBRCurrentQuestion", parseInt(curr + 1).toString(), mw.user.tokens.get('editToken'));
addNewSection("WBRCurrentQuestion", parseInt(curr + 1).toString(), mw.user.tokens.get('editToken'));
}
}

Revision as of 15:48, 5 September 2013