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); 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);