Skip to content

Instantly share code, notes, and snippets.

@ktiedt
Created September 20, 2012 17:12
Show Gist options
  • Save ktiedt/3757129 to your computer and use it in GitHub Desktop.
Save ktiedt/3757129 to your computer and use it in GitHub Desktop.
original "multiple" but toggle selection mode
_handleSelect: function(event, currentTarget){
if (this.selectionMode != "multiple") {
console.log("!multiple inherited return");
return this.inherited(arguments);
}
var row = this.row(currentTarget),
selected = this.selection[row.id];
if (selected) {
console.log(this.selection);
console.log("selected return");
return this.select(row, row, false);
}
console.log("inherited");
this.inherited(arguments);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment