mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Rename subs.add -> subs.add_for_send
This has some logic specific to the "Create and send" / "Subscribe and send" buttons. (imported from commit 5f9e314ebde31ec1e6a183513816d1ade361e4cc)
This commit is contained in:
parent
95f8eea14b
commit
2fe034d161
@ -52,7 +52,7 @@ exports.fetch = function () {
|
||||
});
|
||||
};
|
||||
|
||||
exports.add = function (stream, prompt_button) {
|
||||
exports.add_for_send = function (stream, prompt_button) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/json/subscriptions/add',
|
||||
|
||||
@ -255,12 +255,12 @@ $(function () {
|
||||
// Prepare the click handler for subbing to a new stream to which
|
||||
// you have composed a message.
|
||||
$('#create-it').click(function () {
|
||||
subs.add(compose.stream_name(), $('#stream-dne'));
|
||||
subs.add_for_send(compose.stream_name(), $('#stream-dne'));
|
||||
});
|
||||
|
||||
// Prepare the click handler for subbing to an existing stream.
|
||||
$('#sub-it').click(function () {
|
||||
subs.add(compose.stream_name(), $('#stream-nosub'));
|
||||
subs.add_for_send(compose.stream_name(), $('#stream-nosub'));
|
||||
});
|
||||
|
||||
var throttled_scrollhandler = $.throttle(50, function(e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user