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

The MathJAx rendering for grid is defined in the model.

parent c17c98b9
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ mainCfg = function(){
};
/**
* main function to instanciate the grid
* main function to instantiate the grid
* @param {Object} provider
* @param {Object} response
*/
......@@ -32,15 +32,9 @@ mainGrid = function(provider, response){
// console.log("Grid Model");
// console.dir(cfg);
// instenciate the grid
// instantiate the grid
var grid = new App.grid.Grid(cfg);
grid.getView().on('refresh', function(){
console.debug('onRefresh');
MathJax.Hub.PreProcess();
MathJax.Hub.Process();
})
// the viewport to hold the grid
// using all space available in the browser
var vp = new Ext.Viewport({
......@@ -57,7 +51,7 @@ Ext.onReady(function(){
Ext.QuickTips.init();
// load the MathJax librayri
// load the MathJax library
App.withMathJax ? App.loadMathJax(mainCfg) : mainCfg();
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment