aboutsummaryrefslogtreecommitdiff
path: root/htdocs/js
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/js')
-rw-r--r--htdocs/js/mathy.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/htdocs/js/mathy.js b/htdocs/js/mathy.js
index 500f677..7acd7ab 100644
--- a/htdocs/js/mathy.js
+++ b/htdocs/js/mathy.js
@@ -28,12 +28,21 @@ jQuery(function($) {
help: [
"<li class='dropdown-header'>",
- " Examples",
+ "Examples",
"</li>",
"%{examples}",
- "<li class='divider'>",
+ "<li class='divider'></li>",
+ "<li>",
+ "<a ",
+ "href='#' ",
+ "title='Show about dialog.' ",
+ "data-toggle='modal' ",
+ "data-target='#about-dialog' ",
+ ">",
+ "About Mathy",
+ "</a>",
"</li>",
],
@@ -42,6 +51,7 @@ jQuery(function($) {
"<a ",
"href='#' ",
"class='example' ",
+ "title='Load example \"%{name|h}\".' ",
"data-text='%{text|h}' ",
">",
"%{num|h}. %{name|h}",
@@ -239,7 +249,7 @@ jQuery(function($) {
text: row.text.join('\n'),
}));
}).join(''),
- })).on('click', 'a', function() {
+ })).on('click', 'a.example', function() {
var text = $(this).data('text');
// hide dropdown