Widget:CurrentWBRQ: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
$title = $xml.find( "text" ); | $title = $xml.find( "text" ); | ||
var curr = parseInt($title.text()); | var curr = parseInt($title.text()); | ||
document.getElementById('queslink').innerHTML = "<a href='http://www.wikidoc.org/index.php/Special:FormEdit/WBRQuestion/WBR | document.getElementById('queslink').innerHTML = "<a href='http://www.wikidoc.org/index.php/Special:FormEdit/WBRQuestion/WBR" + curr + "'><img src='http://static.wikidoc.org/5/54/Click_here_to_add_a_question.png</a>"; | ||
addNewSection( "WBRCurrentQuestion",parseInt(curr+1).toString(),mw.user.tokens.get( 'editToken' )); | |||
addNewSection( "WBRCurrentQuestion", | |||
} | } | ||
}); | }); |