Skip to content
Snippets Groups Projects
Commit 732ddb58 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Script to test the MathJax rendering in panel.

parent 7c9ea974
No related branches found
No related tags found
No related merge requests found
/**
* panel_1.js
*
* Script to test the panel with MathJax
* $Id$
*
*/
main = function(){
console.log('MathJax is loaded');
var panel = new Ext.Panel({
autoLoad: App.name + '/reports/report_1',
preventBodyReset: true,
script: false,
});
var vp = new Ext.Viewport({
region: 'center',
layout: 'fit',
items: [panel]
});
// console.dir(panel);
var updater = panel.body.getUpdater();
updater.on('update', function(e, o){
console.log('html content is loaded');
MathJax.Hub.PreProcess();
MathJax.Hub.Process();
});
vp.render('appmain');
};
Ext.onReady(function(){
Ext.QuickTips.init();
App.withMathJax ? App.loadMathJax(main) : main();
});
\ No newline at end of file
/**
* panel_2.js
*
* Script to test the panel with MathJax
* $Id$
*
*/
main = function(){
var panel = new Ext.Panel({
autoLoad: App.name + '/reports/report_1',
preventBodyReset: true,
plugins: ['pPanelMathJax'],
script: false,
});
var vp = new Ext.Viewport({
region: 'center',
layout: 'fit',
items: [panel]
});
vp.render('appmain');
};
Ext.onReady(function(){
Ext.QuickTips.init();
App.withMathJax ? App.loadMathJax(main) : main();
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment