mirror of https://github.com/zulip/zulip.git
Rename parameter for clarity
(imported from commit c69a5a57467664631ba812c5237641e0203e1aaa)
This commit is contained in:
parent
d980afcf25
commit
d41fde7d92
|
@ -85,14 +85,14 @@ exports.have = function (stream_name) {
|
||||||
return (stream_set[stream_name.toLowerCase()] === true);
|
return (stream_set[stream_name.toLowerCase()] === true);
|
||||||
};
|
};
|
||||||
|
|
||||||
function ajaxSubscribe(streams) {
|
function ajaxSubscribe(stream) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "/json/subscriptions/add",
|
url: "/json/subscriptions/add",
|
||||||
dataType: 'json', // This seems to be ignored. We still get back an xhr.
|
dataType: 'json', // This seems to be ignored. We still get back an xhr.
|
||||||
data: {"streams": JSON.stringify([streams]) },
|
data: {"streams": JSON.stringify([stream]) },
|
||||||
success: function (resp, statusText, xhr, form) {
|
success: function (resp, statusText, xhr, form) {
|
||||||
if ($("#streams").val() === streams) {
|
if ($("#streams").val() === stream) {
|
||||||
$("#streams").val("");
|
$("#streams").val("");
|
||||||
}
|
}
|
||||||
var name, res = $.parseJSON(xhr.responseText);
|
var name, res = $.parseJSON(xhr.responseText);
|
||||||
|
|
Loading…
Reference in New Issue