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 (! return callback();
    //console.log('form not saved yet');
}, 10000);

function SetExecuteOnSaveComplete()
ExecuteWhenSaveComplete(function ()
    console.log('form save complete');


any support would be great , thanks