修复了一些问题

This commit is contained in:
2026-08-25 20:15:55 +08:00
parent c484ee6ef3
commit e877ceb560
28 changed files with 565 additions and 535 deletions
+8 -8
View File
@@ -232,12 +232,12 @@ const poster = (function () {
$container.removeChild($wrapper);
$container.classList.add('loaded');
$.isFunction(config.callback) && config.callback($container);
jQuery.isFunction(config.callback) && config.callback($container);
};
image.onerror = function () {
loadCount++;
if (loadCount >= 3) {
return $.isFunction(config.onerror) && config.onerror($container);
return jQuery.isFunction(config.onerror) && config.onerror($container);
}
setSrc();
};
@@ -450,8 +450,8 @@ const poster = (function () {
};
})();
$('body').on('click', '[poster-share]', function () {
var _this = $(this);
jQuery('body').on('click', '[poster-share]', function () {
var _this = jQuery(this);
var _id = _this.attr('poster-share');
var modal_id = 'modal_poster_' + _id;
var modal_selector = '#' + modal_id;
@@ -471,16 +471,16 @@ $('body').on('click', '[poster-share]', function () {
</div>\
</div>';
$('.modal:not(' + modal_selector + ')').modal('hide');
var _modal = $(modal_selector);
jQuery('.modal:not(' + modal_selector + ')').modal('hide');
var _modal = jQuery(modal_selector);
if (_modal.length) {
_modal.modal('show');
return false;
}
$('body').append(modal_html);
_modal = $(modal_selector);
jQuery('body').append(modal_html);
_modal = jQuery(modal_selector);
_modal.modal('show');