text: /* globals editURL */
  $(document).ready(function () {
      $("#update_submit").click(function () {
          // Start Updating Animation
          disableButton('#update_submit', 'Saving...');
          
          var website = $("#update_website").val();
          var quote = $("#update_quote").val();
          var about = $("#update_about").val();
          $.ajax({
              type: "POST",
              url: editURL,
              data: AddAntiForgeryToken({
                  Website: website,
                  Quote: quote,
                  About: about
              }),
              success: function (response) {
                  if (response.result) {
                      $("#top_msg").css('display', 'inline', 'important');
                      $("#top_msg").html('<div class="alert alert-success alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>Settings Saved!</div>');
                  }
                  else {
                      $("#top_msg").css('display', 'inline', 'important');
                      $("#top_msg").html('<div class="alert alert-danger alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>' + parseErrorMessage(response) + '</div>');
                  }
              },
              error: function (response) {
                  $("#top_msg").css('display', 'inline', 'important');
                  $("#top_msg").html('<div class="alert alert-danger alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>' + parseErrorMessage(response.responseText) + '</div>');
              }
          }).always(function () {
              enableButton('#update_submit', 'Save');
          });
          return false;
      });
  });
  