This commit is contained in:
2026-02-03 15:31:29 +05:00
commit 326c677e8d
2800 changed files with 1489388 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
theme.Trigger = function() {
function Trigger() {
this.load();
};
Trigger.prototype = $.extend({}, Trigger.prototype, {
load: function () {
var _ = this;
$body.on('click', '[data-js-trigger]', function () {
_.process($(this).attr('data-js-trigger'));
});
},
process: function (id, event) {
event = event || 'click';
$('[data-js-trigger-id="' + id + '"]').trigger(event);
}
});
theme.Trigger = new Trigger;
};
$(function() {
theme.Trigger();
});