[置顶] 我修正的 modalbox 的一个bug
来源:互联网 发布:c语言 double 编辑:程序博客网 时间:2024/06/02 22:10
http://code.google.com/p/modalbox/issues/detail?id=360 写道
http://code.google.com/p/modalbox/
1. this.focusableElements is undefined modalbox.js Line 438<code>_putContent: function(callback){this.MBcontent.show();this.focusableElements = this._findFocusableElements();this._setFocus(); // Setting focus on first 'focusable' element in content (input, select, textarea, link or button)if(callback != undefined)callback(); // Executing internal JS from loaded contentthis.event("afterLoad"); // Passing callback},</code>this.focusableElements = this._findFocusableElements(); have a problem<code>_findFocusableElements: function() { // Collect form elements or links from MB contentif (this.options.autoFocusing === true) {// TODO maybe add :enabled to select and textarea elementsthis.MBcontent.select('input:not([type=hidden]):enabled, select, textarea, button, a[href]').invoke('addClassName', 'MB_focusable');this.focusableElements = this.MBcontent.select('.MB_focusable');}},<code>if this.options.autoFocusing == false , will not return valueI add line "return this.focusableElements ;" or modify _putContent function line: this.focusableElements = this._findFocusableElements();modify this._findFocusableElements();
0 0
- [置顶] 我修正的 modalbox 的一个bug
- BugFree 的一个 bug 修正
- 修正o-blog 2.5的一个bug
- 修正TaskManagerEx2.0的一个BUG
- pe_xscan 修正文件时间的一个bug
- U3Terrain的一个BUG及修正
- 一个有趣的Bug修正记
- [置顶] FleaPHP中FLEA_View_Simple的bug 和 本人的修正版本
- 修正bug的方法
- CCEditBox的bug修正
- 我遇到的js时间插件dhtmlgoodies_calendar小bug修正
- 分享:Microsoft IE Webcontrols Treeview的一个bug及修正
- 今天修正了一个SMD数据库的BUG
- 修正了cgit 项目中makefile的一个Bug
- Linus修正一个内核的mmap data corrupt bug
- 修正了标准工时软件的一个BUG
- 修正XPMenu的两个Bug
- Subversion分支的Bug修正
- 对象转换利器之Dozer
- [置顶] 给FleaPHP集成FirePHP
- LTE secure mode
- [置顶] 学习Google Map 第三版
- js生成验证码
- [置顶] 我修正的 modalbox 的一个bug
- [置顶] Apache 2 + PHP + REST支持例子
- [置顶] 卖书,整理抽屉所得,要的话 给我留言
- [置顶] 抛弃框架的基于纯 Java Servlet 与 JSP的网站系统开发
- [置顶] 我也来推荐下 Nutz
- MySQL Where 运算符小结
- [置顶] 原来JAVA对象转JSON格式的字符串如此简单,返回来暂时不会做,留下纪念下
- php基础之变量
- [置顶] JAVA 关键字 protected 的用法 理解