Track public JS yg dipakai view (tooltips, dhcp, stasiunkerja, tarifstiker, member-details/extend) biar ikut ke-deploy

This commit is contained in:
2026-10-14 12:59:35 +07:00
parent fae9184c1b
commit 7dec985309
6 changed files with 1773 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
(function ($) {
"use strict";
$(function () {
/* Code for attribute data-custom-class for adding custom class to tooltip */
if (typeof $.fn.tooltip.Constructor === "undefined") {
throw new Error("Bootstrap Tooltip must be included first!");
}
var Tooltip = $.fn.tooltip.Constructor;
// add customClass option to Bootstrap Tooltip
$.extend(Tooltip.Default, {
customClass: "",
});
var _show = Tooltip.prototype.show;
Tooltip.prototype.show = function () {
// invoke parent method
_show.apply(this, Array.prototype.slice.apply(arguments));
if (this.config.customClass) {
var tip = this.getTipElement();
$(tip).addClass(this.config.customClass);
}
};
$('[data-bs-toggle="tooltip"]').tooltip();
});
})(jQuery);