diff --git a/static/plugin_dbui/lib/appgridmathjax.js b/static/plugin_dbui/lib/appgridmathjax.js new file mode 100644 index 0000000000000000000000000000000000000000..9b9065f17f408f1e54e82105bbaa459c36c921b7 --- /dev/null +++ b/static/plugin_dbui/lib/appgridmathjax.js @@ -0,0 +1,24 @@ +/** + * Plugin to render mathematics formula embedded in grid content. + * The processing is performed by MathJax. + * The MathJax library is loaded by the framework + * + * @version $Id$ + * + */ + +Ext.namespace('App.grid'); + +App.grid.MathJax = Ext.extend(Object, { + + init: function(grid){ + + grid.getView().on('refresh', function(){ + MathJax.Hub.PreProcess(); + MathJax.Hub.Process(); + }) + + }, +}); + +Ext.preg('pGridMathJax', App.grid.MathJax); \ No newline at end of file