Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

最近在做discuz X2.5的模板开发,发现一个BUG

[复制链接]
cqqh 发表于 2012-11-21 10:44:51 | 显示全部楼层 |阅读模式
本帖最后由 cqqh 于 2013-1-6 12:01 编辑

最近在做discuz X2.5的模板开发,发现一个BUG



如果输入了标题和内容,但没有输入验证码,点提交后。附件列表的弹窗的内容就会不见

/static/js/forum_post.js 里面

function validate(theform) 方法里面的
  1. if($(editorid + '_attachlist')) {
  2.                 $('postbox').appendChild($(editorid + '_attachlist'));
  3.                 $(editorid + '_attachlist').style.display = 'none';
  4.         }
  5.         if($(editorid + '_imgattachlist')) {
  6.                 $('postbox').appendChild($(editorid + '_imgattachlist'));
  7.                 $(editorid + '_imgattachlist').style.display = 'none';
  8.         }
  9.         hideMenu();
复制代码
这段代码移动到 function postsubmit(theform) 方法里面即可
  1. function postsubmit(theform) {
  2.         if($(editorid + '_attachlist')) {
  3.                 $('postbox').appendChild($(editorid + '_attachlist'));
  4.                 $(editorid + '_attachlist').style.display = 'none';
  5.         }
  6.         if($(editorid + '_imgattachlist')) {
  7.                 $('postbox').appendChild($(editorid + '_imgattachlist'));
  8.                 $(editorid + '_imgattachlist').style.display = 'none';
  9.         }
  10.         hideMenu();

  11.         theform.replysubmit ? theform.replysubmit.disabled = true : (theform.editsubmit ? theform.editsubmit.disabled = true : theform.topicsubmit.disabled = true);
  12.         theform.submit();
  13. }
复制代码
希望能有帮助


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

评分

1

查看全部评分

bgkoo 发表于 2012-11-21 15:19:08 | 显示全部楼层
占楼。。。
回复

使用道具 举报

m.king 发表于 2012-11-22 17:51:35 | 显示全部楼层
问题已经收到感谢您的反馈!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-3-1 20:20 , Processed in 0.034172 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表