Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function saveTpl(file, date) {
- var process = true;
- $.ajax({
- type: "POST",
- url: "misc.php?action=fileExist",
- data: "file="+filename,
- success: function(msg) {
- if (msg == 'yes') {
- process = false;
- alert('ajax process val='+ (process ? 'true' : 'false'));
- }
- }
- });
- alert(process ? 'true' : 'false');
- }
Add Comment
Please, Sign In to add comment