Advertisement
Guest User

getConfig()

a guest
Jul 22nd, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getConfig() {
  2.     var ret = false;
  3.     $.ajax({
  4.         url: "/getConfig.php",
  5.         cache: false,
  6.         success: function(config) {
  7.             if (config === '1') {
  8.                 ret = true;
  9.                 alert(ret);
  10.             }
  11.         }
  12.     });
  13.     alert(ret);
  14.     return ret;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement