Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ezhov-da/372e9ba366be295a08fff4687af3c6d2 to your computer and use it in GitHub Desktop.
Save ezhov-da/372e9ba366be295a08fff4687af3c6d2 to your computer and use it in GitHub Desktop.
js extjs маска загрузки для ajax
var maskingAjax = new Ext.data.Connection({
listeners: {
'beforerequest': {
fn: function(con, opt){
Ext.get(document.body).mask('Загрузка...');
},
scope: this
},
'requestcomplete': {
fn: function(con, res, opt){
Ext.get(document.body).unmask();
},
scope: this
},
'requestexception': {
fn: function(con, res, opt){
Ext.get(document.body).unmask();
},
scope: this
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment