Rename parameter for clarity

(imported from commit c69a5a57467664631ba812c5237641e0203e1aaa)
This commit is contained in:
Zev Benjamin 2012-11-09 16:56:05 -05:00
parent d980afcf25
commit d41fde7d92
1 changed files with 3 additions and 3 deletions

View File

@ -85,14 +85,14 @@ exports.have = function (stream_name) {
return (stream_set[stream_name.toLowerCase()] === true);
};
function ajaxSubscribe(streams) {
function ajaxSubscribe(stream) {
$.ajax({
type: "POST",
url: "/json/subscriptions/add",
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) {
if ($("#streams").val() === streams) {
if ($("#streams").val() === stream) {
$("#streams").val("");
}
var name, res = $.parseJSON(xhr.responseText);