Last active
March 10, 2019 12:15
-
-
Save ezhov-da/372e9ba366be295a08fff4687af3c6d2 to your computer and use it in GitHub Desktop.
js extjs маска загрузки для ajax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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