diff --git a/js/privatebin.js b/js/privatebin.js index dc02e8f..3665d1b 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -2205,6 +2205,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { $messageEdit.addClass('active'); $messagePreview.removeClass('active'); + $('#messageedit').attr("aria-selected",true); + $('#messagepreview').attr("aria-selected",false); + PasteViewer.hide(); // reshow input @@ -2234,6 +2237,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { $messageEdit.removeClass('active'); $messagePreview.addClass('active'); + $('#messageedit').attr("aria-selected","false"); + $('#messagepreview').attr("aria-selected","true"); + // hide input as now preview is shown $message.addClass('hidden'); diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index a74e767..e8fb517 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -72,7 +72,7 @@ endif; ?> - + @@ -517,8 +517,8 @@ endif; ?>