修复了一些问题

This commit is contained in:
kate522 committed 2026-08-25 20:15:55 +08:00
1 parent c484ee6ef3
commit e877ceb560
28 files changed
+565 -535

No files matched your search

+10 -10
View File
@@ -6,12 +6,12 @@ function grin(_this, val, fun) {
.val(t_val + val)
.focus()
.click();
$.isFunction(fun) && fun(_this, val);
jQuery.isFunction(fun) && fun(_this, val);
}
//编辑框添加表情
_win.bd.on('click', '.dropdown-smilie .smilie-icon', function () {
var _this = $(this);
var _this = jQuery(this);
var smilie = _this.attr('data-smilie');
smilie = '[g=' + smilie + ']';
return grin(_this, smilie);
@@ -19,7 +19,7 @@ _win.bd.on('click', '.dropdown-smilie .smilie-icon', function () {
//编辑框添加代码
_win.bd.on('click', '.dropdown-code [type="submit"]', function () {
var _this = $(this);
var _this = jQuery(this);
var val = _this.parents('.dropdown-code').find('textarea').val();
if (val.length < 2) return void notyf(aksrt__('enter_code'), 'warning');
@@ -29,7 +29,7 @@ _win.bd.on('click', '.dropdown-code [type="submit"]', function () {
//编辑框添加图片
_win.bd.on('click', '.dropdown-image [type="submit"]', function () {
var _this = $(this);
var _this = jQuery(this);
var val = _this.parents('.dropdown-image').find('textarea').val();
if (val.length < 6) return void notyf(aksrt__('enter_valid_image_url'), 'warning');
val = '[img=' + val + ']\n';
@@ -39,17 +39,17 @@ _win.bd.on('click', '.dropdown-image [type="submit"]', function () {
//上传图片
_win.bd.on('miniuploaded', '.input-expand-upload', function (a, data) {
var img = '[img=' + data.img_url + ']\n';
return grin($(this), img);
return grin(jQuery(this), img);
});
//按钮展开
_win.bd.on('click', '.btn-input-expand', function () {
return $(this).parent().toggleClass('open').trigger('toggleClass'), !1;
return jQuery(this).parent().toggleClass('open').trigger('toggleClass'), !1;
});
//编辑框添加链接
_win.bd.on('click', '.dropdown-link [type="submit"]', function () {
var _this = $(this);
var _this = jQuery(this);
var val = _this.closest('.dropdown-link').find('textarea').val();
if (val.length < 6) return void notyf(aksrt__('enter_valid_link_url'), 'warning');
@@ -73,13 +73,13 @@ _win.bd.on('click', '.dropdown-link [type="submit"]', function () {
//保存我的快捷回复后,自动更新
_win.bd.on('aksrt_ajax.success', '.user-quick-often-save-btn', function (e, data) {
if (data.item) {
$('.quick-reply-myitem-box').html(data.item);
jQuery('.quick-reply-myitem-box').html(data.item);
}
});
//快捷回复;选择内容,弹出操作按钮
_win.bd.on('click', '.quick-reply-item', function () {
var _this = $(this);
var _this = jQuery(this);
var quick_reply_action = 'quick-reply-action';
var quick_active = 'quick-active';
_this.siblings().removeClass(quick_active);
@@ -96,7 +96,7 @@ _win.bd.on('click', '.quick-reply-item', function () {
//快捷回复:插入内容或发送
_win.bd.on('click', '.quick-reply-action button', function () {
var _this = $(this);
var _this = jQuery(this);
var form = _this.closest('form'); //唯一的表单
var quick_reply = _this.parents('.quick-reply-item').data('quick-reply');
var textarea = form.find('textarea.grin');