var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(InitializeRequest);
prm.add_endRequest(EndRequest);
var postBackElement;
function InitializeRequest(sender, args) {
if (prm.get_isInAsyncPostBack())
args.set_cancel(true);
postBackElement = args.get_postBackElement();
if (postBackElement.id == 'Inventory_MainContent_btn_Save') {
$get('Inventory_MainContent_UpdateProgress1').style.display = 'block';
$get('Inventory_MainContent_btn_Save').disabled = true;
}
}
function EndRequest(sender, args) {
if (postBackElement.id == 'Inventory_MainContent_btn_Save') {
$get('Inventory_MainContent_UpdateProgress1').style.display = 'none';
$get('Inventory_MainContent_btn_Save').disabled = false;
}
}
Please Wait...
No comments:
Post a Comment