mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: uses tooltip to display local dates previews
This commit is contained in:
parent
95db5f0c8c
commit
7285e7fbba
2 changed files with 6 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
|||
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||
import showModal from "discourse/lib/show-modal";
|
||||
import { registerTooltip } from "discourse/lib/tooltip";
|
||||
|
||||
function initializeDiscourseLocalDates(api) {
|
||||
api.decorateCooked($elem => {
|
||||
$(".discourse-local-date", $elem).applyLocalDates();
|
||||
registerTooltip($(".discourse-local-date", $elem));
|
||||
});
|
||||
|
||||
api.addToolbarPopupMenuOptionsCallback(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue