From 7b726cbc02e21bec9a267f0ba6fd8ab31a2dbded Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 26 Mar 2015 13:58:57 +0000 Subject: [PATCH] more working logic and also pretty nice screen reader experience --- src/node/utils/toolbar.js | 2 ++ src/static/js/ace.js | 1 + src/static/js/pad_editbar.js | 2 +- src/templates/pad.html | 4 ++-- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/node/utils/toolbar.js b/src/node/utils/toolbar.js index 85af619c..8905eee1 100644 --- a/src/node/utils/toolbar.js +++ b/src/node/utils/toolbar.js @@ -105,6 +105,8 @@ _.extend(Button.prototype, { } }); + + SelectButton = function (attributes) { this.attributes = attributes; this.options = []; diff --git a/src/static/js/ace.js b/src/static/js/ace.js index a9bbb0d9..c446939a 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -320,6 +320,7 @@ window.onload = function () {\n\ var outerFrame = document.createElement("IFRAME"); outerFrame.name = "ace_outer"; outerFrame.frameBorder = 0; // for IE + outerFrame.title = "Ether"; info.frame = outerFrame; document.getElementById(containerId).appendChild(outerFrame); diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index a16cc63f..c71d2b8a 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -325,7 +325,7 @@ var padeditbar = (function() // On left arrow move to next button in editbar if(evt.keyCode === 37){ editbarPosition--; - $(focusItems[editbarPosition]).focus(); + $(focusItems[editbarPosition]).focus() } // On right arrow move to next button in editbar diff --git a/src/templates/pad.html b/src/templates/pad.html index 99997615..c18a67d9 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -61,12 +61,12 @@
-