Add showDiscoverable configuration to control the discoverability checkbox

This commit is contained in:
Davide P. Cervone 2011-11-16 12:58:48 -05:00
parent 6d9994d9d1
commit 88355ecc74
10 changed files with 17 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -39,6 +39,7 @@
showRenderer: true, // show the "Math Renderer" menu?
showFontMenu: false, // show the "Font Preference" menu?
showContext: false, // show the "Context Menu" menu?
showDiscoverable: false, // show the "Discoverable" menu?
windowSettings: { // for source window
status: "no", toolbar: "no", locationbar: "no", menubar: "no",
@ -840,8 +841,8 @@
ITEM.RADIO("Browser", "context")
),
ITEM.COMMAND("Scale All Math ...",MENU.Scale),
ITEM.RULE().With({hidden: true}),
ITEM.CHECKBOX("Highlight on Hover", "discoverable", {hidden: true})
ITEM.RULE().With({hidden: CONFIG.showDiscoverable, name:"discover_rule"}),
ITEM.CHECKBOX("Highlight on Hover", "discoverable", {hidden: CONFIG.showDiscoverable})
),
ITEM.RULE(),
ITEM.COMMAND("About MathJax",MENU.About),
@ -862,6 +863,11 @@
MENU.cookie.showContext = CONFIG.showContext = show; MENU.saveCookie();
MENU.menu.Find("Math Settings","Contextual Menu").hidden = !show;
};
MENU.showDiscoverable = function (show) {
MENU.cookie.showContext = CONFIG.showContext = show; MENU.saveCookie();
MENU.menu.Find("Math Settings","Highlight on Hover").hidden = !show;
MENU.menu.Find("Math Settings","discover_rule").hidden = !show;
};
if (MENU.isMobile) {
(function () {