fitnesse.resources.javascript.fitnesse_straight.js Maven / Gradle / Ivy
$(function () {
/**
* Change a.button to a real button (so it looks the same), retaining link behaviour
*/
$('a.button').replaceWith(function () {
var self = $(this);
var button = $('');
button.text(self.text());
button.click(function () {
window.location = self.attr('href');
return false;
});
return button;
});
});