mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
Add channel module wrapping our various JSON requests to the server.
(imported from commit 6489938678551ad8594822363ae6d1c9ae295496)
This commit is contained in:
@@ -73,10 +73,8 @@ $(function () {
|
||||
var validator = $("#referral-form").validate({
|
||||
errorClass: 'text-error',
|
||||
submitHandler: function () {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
channel.post({
|
||||
url: "/json/refer_friend",
|
||||
dataType: "json",
|
||||
data: { email: $("#referral-form input").val() },
|
||||
error: function () {
|
||||
// We ignore errors from the server because
|
||||
|
||||
Reference in New Issue
Block a user