This commit is contained in:
Albert Yi
2018-07-31 16:31:18 -07:00
parent 6fa0ae2cf1
commit 6fde3c20cf
37 changed files with 67 additions and 53 deletions

View File

@@ -1,3 +1,5 @@
import Utility from './utility'
let ModQueue = {};
ModQueue.processed = 0;

View File

@@ -1,9 +1,12 @@
import Utility from './utility'
require('qtip2');
require('qtip2/dist/jquery.qtip.css');
let PostTooltip = {};
PostTooltip.render_tooltip = function (event, qtip) {
var post_id = $(event.target).parents("[data-id]").data("id");
var post_id = $(this).parents("[data-id]").data("id");
$.get("/posts/" + post_id, { variant: "tooltip" }).then(function (html) {
qtip.set("content.text", html);