' + WPA.Records.createTableHTML(cat) + '
');
WPA.Records.createDataTable(cat, false);
});
// set up tabs
jQuery('#tabs').tabs({
activate: function( event, ui ) {
WPA.Records.currentCategory = ui.newTab.attr('category');
WPA.Records.getPersonalBests();
},
create: function( event, ui ) {
WPA.Records.currentCategory = ui.tab.attr('category');
WPA.Records.getPersonalBests();
}
});
// filter gender
jQuery("#filterGender").combobox({
select: function(event, ui) {
WPA.Records.gender = ui.item.value;
WPA.Records.getPersonalBests();
},
selectClass: 'filter-highlight',
defaultValue: 'B'
});
// setup filters
WPA.setupFilters(null, null, WPA.Records.getPersonalBests);
// setup results dialog
WPA.setupEditResultDialog(WPA.loadEventResults);
// common setup function
WPA.setupCommon();
});
});
Content loading...