javascript alert

Jul 8 at 11:55 AM
hi ,
i am trying to use alert.js in my function but it does no sense at all
i installed the library of Alert.js and here is my code using it onSave event
trying to refresh a form through a function and disable it using Alert.showLoading()

function ExecuteWhenSaveComplete(callback)
{
setTimeout(function ()
{
    if (!Xrm.Page.data.entity.getIsDirty()) return callback();
    //console.log('form not saved yet');
    ExecuteWhenSaveComplete(callback);
}, 10000);
}

function SetExecuteOnSaveComplete()
{
ExecuteWhenSaveComplete(function ()
{
    console.log('form save complete');
    Xrm.Utility.openEntityForm(Xrm.Page.data.entity.getEntityName(), Xrm.Page.data.entity.getId());


});
Alert.showLoading(http://astoman.cloudapp.net/RAECOCRM);
}

any support would be great , thanks