From 73073dcbc1e741d4a9e62afad7f76f2838f2237d Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 31 Mar 2015 14:47:00 +0100 Subject: [PATCH] Timeslider accessibility and Bugfixes --- src/static/css/pad.css | 15 ++++++++++++++- src/static/js/broadcast_slider.js | 1 - src/static/js/pad_editbar.js | 4 ++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/static/css/pad.css b/src/static/css/pad.css index 01da9332..e5e765a1 100644 --- a/src/static/css/pad.css +++ b/src/static/css/pad.css @@ -137,8 +137,21 @@ a img { top: 1px; } .toolbar ul li a .buttontext { - color: #222; + color: #666; font-size: 14px; + border:none; + background:none; + margin-top:1px; + color:#666; +} +.buttontext::-moz-focus-inner { + padding: 0; + border: 0; +} +.buttontext:focus{ + border: 1px solid #666; +} + } .toolbar ul li a.grouped-left { border-radius: 3px 0 0 3px; diff --git a/src/static/js/broadcast_slider.js b/src/static/js/broadcast_slider.js index 7f0e48bc..a1418140 100644 --- a/src/static/js/broadcast_slider.js +++ b/src/static/js/broadcast_slider.js @@ -330,7 +330,6 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded) } } else if (code == 32) playpause(); - }); $(window).resize(function() diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index 75bf40f0..027fce82 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -308,6 +308,10 @@ var padeditbar = (function() var editbarPosition = 0; function bodyKeyEvent(evt){ + // Check we're on a pad and not on the timeslider + // Or some other window I haven't thought about! + if(typeof pad === 'undefined') return false; + // If the event is Alt F9 or Escape & we're already in the editbar menu // Send the users focus back to the pad if((evt.keyCode === 120 && evt.altKey) || evt.keyCode === 27){