mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Change data to attr in inline subscribe buttons
(imported from commit 72fef9dd3cb58ff15e74709b0470033a7f8796b4)
This commit is contained in:
@@ -67,7 +67,7 @@ var exports = {};
|
||||
$(function () {
|
||||
$('#main_div').delegate('.inline-subscribe-button', 'click', function (e) {
|
||||
var $button = $(e.target);
|
||||
var stream_name = $button.closest('.inline-subscribe').data('stream-name');
|
||||
var stream_name = $button.closest('.inline-subscribe').attr('data-stream-name');
|
||||
var $status_message = $button.siblings('.inline-subscribe-error');
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
@@ -86,7 +86,7 @@ var exports = {};
|
||||
if ($inline_subscribe.length === 0) {
|
||||
return;
|
||||
}
|
||||
stream_name = $inline_subscribe.data('stream-name');
|
||||
stream_name = $inline_subscribe.attr('data-stream-name');
|
||||
$button = $inline_subscribe.find('.inline-subscribe-button');
|
||||
|
||||
if (inline_subscribe_id_map[stream_name]) {
|
||||
|
||||
Reference in New Issue
Block a user