User:ערן/mathjaxdialog.js: Difference between revisions

Content deleted Content added
No edit summary
m Remove legacy globals per phab:T72470 (via WP:JWB)
 
(3 intermediate revisions by one other user not shown)
Line 2:
 
 
if ($.inArray(mw.config.get('wgAction'),['edit','submit'])!=-1) mw.loader.using(['jquery.wikiEditor','jquery.wikiEditor.toolbar','ext.wikiEditor','ext.wikiEditor.toolbar'],function(){
function mathDialog(){
mw.loader.using(['jquery.ui.dialog','ext.math.mathjax.enabler'],function(){
var mathEditor=$('<div>');
var mathInput=$('<input>',{dir:'ltr'}).appendTo(mathEditor);
Line 13:
$(this).dialog('close');
},
'Help':function(){window.open(mw.util.wikiGetlinkgetUrl('Help:Math'))},
'Cancel': function(){ $(this).dialog('close');}
} });