add title attributes for dropdown menus

pull/1/head
ansuz 9 years ago
parent 8b1a2b7b8b
commit 22929fd3f5

@ -213,7 +213,7 @@ define([
})); }));
/* Let the user select different syntax highlighting modes */ /* Let the user select different syntax highlighting modes */
var syntaxDropdown = '<select id="language-mode">\n' + var syntaxDropdown = '<select title="syntax highlighting" id="language-mode">\n' +
Modes.map(function (o) { Modes.map(function (o) {
var selected = o.mode === 'javascript'? ' selected="selected"' : ''; var selected = o.mode === 'javascript'? ' selected="selected"' : '';
return '<option value="' + o.mode + '"'+selected+'>' + o.language + '</option>'; return '<option value="' + o.mode + '"'+selected+'>' + o.language + '</option>';
@ -225,7 +225,7 @@ define([
var lastTheme = localStorage.getItem(themeKey) || 'default'; var lastTheme = localStorage.getItem(themeKey) || 'default';
/* Let the user select different themes */ /* Let the user select different themes */
var themeDropdown = '<select id="display-theme">\n' + var themeDropdown = '<select title="color theme" id="display-theme">\n' +
Themes.map(function (o) { Themes.map(function (o) {
var selected = o.name === lastTheme? ' selected="selected"': ''; var selected = o.name === lastTheme? ' selected="selected"': '';
return '<option value="' + o.name + '"'+selected+'>' + o.name + '</option>'; return '<option value="' + o.name + '"'+selected+'>' + o.name + '</option>';

Loading…
Cancel
Save