2014-02-17 18:05:39 +01:00
|
|
|
// when the document is ready
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
2014-03-14 00:16:35 +01: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 18:05:39 +01:00
|
|
|
// show form to add a talkback command
|
|
|
|
$('#talkback_command_add').click(function() {
|
|
|
|
$(this).hide();
|
|
|
|
$('#talkback_command_add_form').removeClass('hide');
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|