mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 01:10:04 +02:00
Fixes Issue #4
This commit is contained in:
parent
6eeaf8a13f
commit
a97e575f63
5 changed files with 12 additions and 7 deletions
|
@ -283,11 +283,12 @@ var SeriesView = BaseView.extend({
|
|||
},
|
||||
|
||||
click: function(ev) {
|
||||
if (!ev || !ev.srcElement) {
|
||||
var element = ev.srcElement || ev.currentTarget;
|
||||
if (!element) {
|
||||
console.warn('wut, no id'); return;
|
||||
}
|
||||
|
||||
var id = $(ev.srcElement).attr('data-id');
|
||||
var id = $(element).attr('data-id');
|
||||
this.navEvents.trigger('clickedID', id);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue