1
Fork 0
lorchess.ru/_assets/javascripts/custom.js

23 lines
597 B
JavaScript
Raw Normal View History

$(function() {
/* Sort a tournament table with tablesorter */
2014-03-22 12:32:54 +04:00
$('.tablesorter .opponent').addClass('{sorter: false}');
$('.tablesorter').tablesorter({
theme : 'blue',
widgets : ['zebra'],
sortReset : true,
sortRestart : true
});
})
/* Stylize pgn4web elements by Bootstrap */
function customFunctionOnPgnGameLoad() {
$('#GameSelSelect').addClass('form-control');
$('#autoplayButton').click(refreshButtonset);
}
function customFunctionOnMove() {
refreshButtonset();
}
function refreshButtonset() {
$('#GameButtons input').addClass('btn btn-default');
}