Commit 719c0684 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update app.js to remove warning related to ARIA.

parent 6b23ecf6
......@@ -7,12 +7,12 @@
Dbui.setDynamicLoading(Dbui.debug);
// classes required by the script
Ext.require('Dbui.container.Viewport');
Ext.require('Dbui.plugin.MathJax');
Ext.require('Ext.direct.Manager');
Ext.require('Ext.direct.RemotingProvider');
Ext.require('Ext.EventManager');
Ext.require('Ext.tip.QuickTipManager');
Ext.require("Dbui.container.Viewport");
Ext.require("Dbui.plugin.MathJax");
Ext.require("Ext.direct.Manager");
Ext.require("Ext.direct.RemotingProvider");
Ext.require("Ext.EventManager");
Ext.require("Ext.tip.QuickTipManager");
Ext.onReady(function(){
......@@ -22,6 +22,9 @@ Ext.onReady(function(){
Ext.QuickTips.init();
// Remove warning on ARIA compatibility
Ext.ariaWarn = Ext.emptyFn;
// Expose the remote methods
Ext.direct.Manager.addProvider(Dbui.REMOTE_API);
......@@ -33,8 +36,8 @@ Ext.onReady(function(){
// NOTE: It should work when the browser is closed to.
// Not working with FireFox 17.0.8, web2py 2.4.5 and Ext JS 3.4.0.
// nor with Firefox 38, web2py 2.14.6, Ext JS 6.0.1
Ext.getWin().on('beforeunload', Dbui.closeUserSession);
Ext.getWin().on("beforeunload", Dbui.closeUserSession);
// Instantiate the application
app = Ext.create('Dbui.container.Viewport', Dbui.config.viewport);
app = Ext.create("Dbui.container.Viewport", Dbui.config.viewport);
});
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment