mirror of https://github.com/zulip/zulip.git
components: Convert .data("tab-id") to .attr.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
153847d617
commit
bc9a7ef274
|
@ -116,7 +116,7 @@ export function toggle(opts: {
|
|||
}
|
||||
|
||||
meta.$ind_tab.on("click", function () {
|
||||
const idx = $(this).data("tab-id");
|
||||
const idx = Number($(this).attr("data-tab-id"));
|
||||
select_tab(idx);
|
||||
});
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@ function make_tab(i) {
|
|||
return tokens.includes(c);
|
||||
};
|
||||
|
||||
$self.data = (name) => {
|
||||
assert.equal(name, "tab-id");
|
||||
$self.attr = (name) => {
|
||||
assert.equal(name, "data-tab-id");
|
||||
return i;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue