爱技术

 找回密码
 注册会员

QQ登录

只需一步,快速开始

微信登录

微信扫一扫,快速登录

搜索
查看: 13176|回复: 8
收起左侧

[BUG]使 Firefox的用户无法使用Ctrl+Enter或者Alt+S快速回复

[复制链接]
发表于 2006-1-12 17:38:22 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?注册会员 微信登录

x
bug现象:该bug 使 Firefox的用户 无法使用Ctrl+Enter 或者 Alt+S 快速回复

bug位于:include/common.js文件中的  function ctlent()。

bug原因:传递参数变量有错误。

目前mobile.0110.cn 的common.js

  1. function ctlent(obj) {
  2.         if(postSubmited == false && (event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83)) {
  3.                 if(this.document.input.pmsubmit) {
  4.                         postSubmited = true;
  5.                         this.document.input.pmsubmit.disabled = true;
  6.                         this.document.input.submit();
  7.                 } else if(validate(this.document.input)) {
  8.                         postSubmited = true;
  9.                         if(this.document.input.topicsubmit) this.document.input.topicsubmit.disabled = true;
  10.                         if(this.document.input.replysubmit) this.document.input.replysubmit.disabled = true;
  11.                         if(this.document.input.editsubmit) this.document.input.editsubmit.disabled = true;
  12.                         this.document.input.submit();
  13.                 }
  14.         }
  15. }
复制代码


www.discuz.net 的common.js


  1. function ctlent(event) {
  2.         if(postSubmited == false && (event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83)) {
  3.                 if(this.document.input.pmsubmit) {
  4.                         postSubmited = true;
  5.                         this.document.input.pmsubmit.disabled = true;
  6.                         this.document.input.submit();
  7.                 } else if(validate(this.document.input)) {
  8.                         postSubmited = true;
  9.                         if(this.document.input.topicsubmit) this.document.input.topicsubmit.disabled = true;
  10.                         if(this.document.input.replysubmit) this.document.input.replysubmit.disabled = true;
  11.                         if(this.document.input.editsubmit) this.document.input.editsubmit.disabled = true;
  12.                         this.document.input.submit();
  13.                 }
  14.         }
  15. }
复制代码
发表于 2006-1-12 19:06:47 | 显示全部楼层
哈哈  这个我不懂   
回复 支持 反对

使用道具 举报

发表于 2006-1-15 10:44:42 | 显示全部楼层
这个……我也不懂……
回复 支持 反对

使用道具 举报

发表于 2006-1-15 11:17:54 | 显示全部楼层
我也不懂...
建议换浏览器 ,嘿嘿
回复 支持 反对

使用道具 举报

发表于 2006-1-15 12:04:11 | 显示全部楼层
我懂那几个英文字母!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-16 23:40:04 | 显示全部楼层
原帖由 永远的肥皂泡 于 2006-1-15 11:17 发表
我也不懂...
建议换浏览器 ,嘿嘿



我现在很喜欢用firefox ,虽然也会不时的用maxthon(IE),
不过还是喜欢firefox的 扩展功能,很爽,让我换是不可能了,因为做web 的时候经常要用到那谢扩展。

这个bug修正起来很简单。只要:

将 include/common.js 这个文件中的
  1. function ctlent(obj) {
复制代码

改为:
  1. function ctlent(event) {
复制代码


就ok, 还是请有权限的管理员帮忙修改一下吧,
或者请Discuz 客服修正也好啊,他们的官方论坛的就是没有问题的
回复 支持 反对

使用道具 举报

发表于 2006-1-17 02:24:29 | 显示全部楼层
你个狼大PM嘛
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-17 14:37:40 | 显示全部楼层
狼大 在维护这个论坛程序?

狼大果然厉害,他忙得过来吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-12 12:28:17 | 显示全部楼层
升级新版本后没有这个问题了,呵呵,爽了也
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员 微信登录

本版积分规则

小黑屋|Archiver|手机版|爱技术 ( 沪ICP备08115260号-3 )

GMT+8, 2024-5-20 02:58

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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