mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
elofgren: USABILITY: Prevent onclick in td.markingcheckbox from doing anything to prevent the edit file window from coming up if the checkbox is missed and the table cell is accidentally clicked instead.
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41831 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7e9623f4ac
commit
91f1b3b39d
@ -27,6 +27,12 @@ TableListField.prototype = {
|
||||
|
||||
rules['#'+this.id+' div.PageControls a'] = {onclick: this.paginate.bind(this)};
|
||||
|
||||
rules['#'+this.id+' table.data tr td.markingcheckbox'] = {
|
||||
onclick : function(e) {
|
||||
// do nothing for clicks in marking box cells (e.g. if checkbox is missed)
|
||||
}
|
||||
};
|
||||
|
||||
// initialize summary (if needed)
|
||||
// TODO Breaks with nested divs
|
||||
var summaryCols = $$('tfoot tr.summary td', this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user