Fix button override

Fix button override problem
This commit is contained in:
smallxu038 2024-02-19 23:54:48 +08:00 committed by GitHub
parent d09644da53
commit 1515c0bbae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,7 +241,7 @@ function clean_upload_images() {
} }
function add_upload_tips() { function add_upload_tips() {
$('<div class="insert-image-tips popup"><i class="fa fa-picture-o" aria-hidden="true"></i><span class="insert-img-popuptext" id="uploadTipPopup">上传图片</span></div><input id="upload-img-file" type="file" accept="image/*" multiple="multiple" class="insert-image-button">').insertAfter($(".form-submit #submit")); $('<div class="insert-image-tips popup"><i class="fa fa-picture-o" aria-hidden="true"></i><span class="insert-img-popuptext" id="uploadTipPopup">上传图片</span><input id="upload-img-file" type="file" accept="image/*" multiple="multiple" class="insert-image-button"></div>').insertAfter($(".form-submit #submit"));
attach_image(); attach_image();
$("#upload-img-file").hover(function () { $("#upload-img-file").hover(function () {
$(".insert-image-tips").addClass("insert-image-tips-hover"); $(".insert-image-tips").addClass("insert-image-tips-hover");