The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
the same row click third time, it can't be selected when i work with "oneClick:true"
| Project: | Colorize - jQuery Table Plugin |
| Version: | 1.3.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | wdx-snail |
| Status: | active |
Jump to:
i made it some changes in the "function oneRowClick(cells)" method.
my codes:
function oneRowClick(cells) {
/*row = jQuery(this).parent().get(0);
colorHandler.highlight.call(row);
if (cells.clicked) {
colorHandler.stopHighlight.call(jQuery(cells.clicked).parent().get(0));
}
cells.clicked = this;*/
// begin weidx 增加单选
row = jQuery(this).parent().get(0);
// 已经有选择
if (cells.clicked != null)
{
//alert("not null");
if (cells.clicked == this) // 重复点击同一行
{
colorHandler.stopHighlight.call(jQuery(cells.clicked).parent().get(0)); // 删除行选中的选中状态
cells.clicked = null; // 设置当时没有选中
}
else // 点击其他行
{
colorHandler.stopHighlight.call(jQuery(cells.clicked).parent().get(0)); // 删除其他行的选中状态
colorHandler.highlight.call(row); // 当前行设置为选中
cells.clicked = this; // 当前行被记录
}
}
// 还没有进行选择
else if (cells.clicked == null)
{
colorHandler.highlight.call(row); // 当前行设置为选中
cells.clicked = this; // 当前行被记录
}
else
{
alert("异常需要跟踪!");
}
// end weidx 增加单选
}
- Login to post comments

Comments
#1
Thanks for the code. I modified and used it in 1.5.1.
#2
iPad Video Converter is then designed for iPad fans to convert videos to iPad. This special ipad video converter can convert all video formats to iPad compatible formats. ipad converter| DVD to ipad| ipad to Mac transfer| ipad to computer transfer| ipad transfer| ipad to epub|
iPad Converter|