mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
ajax: Fix wrong ajax setting name from beforeSubmit to beforeSend.
The beforeSubmit function was a feature of the jquery-form plugin that we removed months ago; the appropriate similar feature of jQuery's built-in AJAX library is beforeSend.
This commit is contained in:
committed by
Tim Abbott
parent
f34a5d6828
commit
dee4e3fb89
@@ -39,7 +39,7 @@ function submit_invitation_form() {
|
|||||||
channel.post({
|
channel.post({
|
||||||
url: "/json/invites",
|
url: "/json/invites",
|
||||||
data: data,
|
data: data,
|
||||||
beforeSubmit: function () {
|
beforeSend: function () {
|
||||||
reset_error_messages();
|
reset_error_messages();
|
||||||
// TODO: You could alternatively parse the textarea here, and return errors to
|
// TODO: You could alternatively parse the textarea here, and return errors to
|
||||||
// the user if they don't match certain constraints (i.e. not real email addresses,
|
// the user if they don't match certain constraints (i.e. not real email addresses,
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ exports.set_up = function () {
|
|||||||
channel.patch({
|
channel.patch({
|
||||||
url: "/json/settings",
|
url: "/json/settings",
|
||||||
data: data,
|
data: data,
|
||||||
beforeSubmit: function () {
|
beforeSend: function () {
|
||||||
if (page_params.realm_password_auth_enabled !== false) {
|
if (page_params.realm_password_auth_enabled !== false) {
|
||||||
// FIXME: Check that the two password fields match
|
// FIXME: Check that the two password fields match
|
||||||
// FIXME: Use the same jQuery validation plugin as the signup form?
|
// FIXME: Use the same jQuery validation plugin as the signup form?
|
||||||
|
|||||||
Reference in New Issue
Block a user