2014-02-17 12:05:39 -05:00
|
|
|
// when the document is ready
|
2014-07-23 13:45:15 -04:00
|
|
|
$(document).on('page:load ready', function() {
|
2014-02-17 12:05:39 -05:00
|
|
|
|
2014-03-13 19:16:35 -04:00
|
|
|
// allow flash notices to be dismissed
|
|
|
|
if ($(".flash").length > 0) {
|
|
|
|
$(".flash").on("click", function() {
|
|
|
|
$(this).hide("slow");
|
|
|
|
});
|
|
|
|
// hide flash automatically after 15 seconds
|
|
|
|
setTimeout(function() {
|
|
|
|
if ($(".flash").length > 0) {
|
|
|
|
$(".flash").hide("slow");
|
|
|
|
}
|
|
|
|
}, 15000);
|
|
|
|
}
|
|
|
|
|
2014-02-17 12:05:39 -05:00
|
|
|
// show form to add a talkback command
|
|
|
|
$('#talkback_command_add').click(function() {
|
|
|
|
$(this).hide();
|
|
|
|
$('#talkback_command_add_form').removeClass('hide');
|
|
|
|
});
|
|
|
|
|
2014-05-08 20:01:41 -04:00
|
|
|
// toggle contact form
|
|
|
|
$('#contact_link').click(function() {
|
|
|
|
$('#contact_form').toggle();
|
|
|
|
});
|
|
|
|
|
2014-07-31 15:35:21 -04:00
|
|
|
// activate any tablesorters
|
|
|
|
$('.tablesorter').tablesorter();
|
|
|
|
|
2014-09-30 21:09:01 -04:00
|
|
|
// set value for userlogin_js, which is used to determine if a form was submitted with javascript enabled
|
|
|
|
$('#userlogin_js').val('6H2W6QYUAJT1Q8EB');
|
|
|
|
|
2014-02-17 12:05:39 -05:00
|
|
|
});
|
|
|
|
|