Fix problem with Show Source not opening a window in Firefox. (Resolves half od the issues in bug 3040088)
This commit is contained in:
parent
2cdcbe2f5e
commit
b225ce154a
|
@ -24,6 +24,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (HUB,HTML,AJAX) {
|
(function (HUB,HTML,AJAX) {
|
||||||
|
var VERSION = "1.0.1";
|
||||||
|
|
||||||
var isPC = HUB.Browser.isPC, isMSIE = HUB.Browser.isMSIE;
|
var isPC = HUB.Browser.isPC, isMSIE = HUB.Browser.isMSIE;
|
||||||
var ROUND = (isPC ? null : "5px");
|
var ROUND = (isPC ? null : "5px");
|
||||||
|
|
||||||
|
@ -130,6 +132,7 @@
|
||||||
* The main menu class
|
* The main menu class
|
||||||
*/
|
*/
|
||||||
var MENU = MathJax.Menu = MathJax.Object.Subclass({
|
var MENU = MathJax.Menu = MathJax.Object.Subclass({
|
||||||
|
version: VERSION,
|
||||||
items: [],
|
items: [],
|
||||||
posted: false,
|
posted: false,
|
||||||
title: null,
|
title: null,
|
||||||
|
@ -333,7 +336,7 @@
|
||||||
},
|
},
|
||||||
Label: function (def,menu) {return [this.name]},
|
Label: function (def,menu) {return [this.name]},
|
||||||
Mouseup: function (event,menu) {
|
Mouseup: function (event,menu) {
|
||||||
if (!this.disabled) {this.Remove(event,menu); this.action.call(this)}
|
if (!this.disabled) {this.Remove(event,menu); this.action.call(this,event)}
|
||||||
return this.False(event);
|
return this.False(event);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -553,7 +556,7 @@
|
||||||
MENU.ShowSource.Window(event); // WeBKit needs to open window on click event
|
MENU.ShowSource.Window(event); // WeBKit needs to open window on click event
|
||||||
MathJax.Callback.Queue(
|
MathJax.Callback.Queue(
|
||||||
AJAX.Require("[MathJax]/extensions/toMathML.js"),
|
AJAX.Require("[MathJax]/extensions/toMathML.js"),
|
||||||
function () {delete AJAX.loadingToMenu},
|
function () {delete AJAX.loadingToMathML},
|
||||||
[this,arguments.callee,EVENT] // call this function again
|
[this,arguments.callee,EVENT] // call this function again
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user