Skip to content

Commit

Permalink
Oprava ID tasku pro detailu pravidla v KB #98
Browse files Browse the repository at this point in the history
  • Loading branch information
PreVaDu committed Apr 1, 2017
1 parent 860aeb7 commit a8d3097
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions web/js/lib/MarkedRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ var MarkedRule = new Class({
return this.$task.id;
},

getOriginTaskId: function(){
return this.$rule.task ? this.$rule.task : this.getTaskId();
},

getUnmarkCSSID: function(){
return 'unmark-' + this.getCSSID();
},
Expand Down
2 changes: 1 addition & 1 deletion web/js/lib/UIListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ var UIListener = new Class({
if (detailsLink) {
detailsLink.addEvent('click', function (event) {
event.stop();
this.UIPainter.renderRuleDetailsDialog(foundRule.getTaskId(),foundRule.getId(true));
this.UIPainter.renderRuleDetailsDialog(foundRule.getOriginTaskId(),foundRule.getId(true));
}.bind(this));
}
/*endregion details*/
Expand Down

0 comments on commit a8d3097

Please sign in to comment.