summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-03-26 13:58:57 +0000
committerJohn McLear <john@mclear.co.uk>2015-03-26 13:58:57 +0000
commit7b726cbc02e21bec9a267f0ba6fd8ab31a2dbded (patch)
treeb370dacf5c0627ffd98518084ca14e06e6c442ac
parent959aa92656365a69d1502c13fa9a0c490c18cd06 (diff)
downloadetherpad-lite-7b726cbc02e21bec9a267f0ba6fd8ab31a2dbded.zip
more working logic and also pretty nice screen reader experience
-rw-r--r--src/node/utils/toolbar.js2
-rw-r--r--src/static/js/ace.js1
-rw-r--r--src/static/js/pad_editbar.js2
-rw-r--r--src/templates/pad.html4
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 @@
<div id="overlay-inner"></div>
</div>
- <ul class="menu_left">
+ <ul class="menu_left" role="toolbar">
<% e.begin_block("editbarMenuLeft"); %>
<%- toolbar.menu(settings.toolbar.left) %>
<% e.end_block(); %>
</ul>
- <ul class="menu_right">
+ <ul class="menu_right" role="toolbar">
<% e.begin_block("editbarMenuRight"); %>
<%- toolbar.menu(settings.toolbar.right) %>
<% e.end_block(); %>