mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
web: Convert .data("code-language") to .attr.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
c2bae4c9d9
commit
abee323c77
@@ -278,7 +278,7 @@ export const update_elements = ($content: JQuery): void => {
|
||||
$content.find("div.codehilite").each(function (): void {
|
||||
const $codehilite = $(this);
|
||||
const $pre = $codehilite.find("pre");
|
||||
const fenced_code_lang = $codehilite.data("code-language");
|
||||
const fenced_code_lang = $codehilite.attr("data-code-language");
|
||||
let playground_info;
|
||||
if (fenced_code_lang !== undefined) {
|
||||
playground_info = realm_playground.get_playground_info_for_languages(fenced_code_lang);
|
||||
|
||||
Reference in New Issue
Block a user