Skip to content

Commit

Permalink
Merge pull request #1118 from csordasmarton/open_run_fix
Browse files Browse the repository at this point in the history
Set run filter by opening a run
  • Loading branch information
bruntib authored Nov 13, 2017
2 parents f66e5e5 + b49d1ef commit e64b4c0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions www/scripts/codecheckerviewer/ListOfRuns.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ define([
'dijit/layout/BorderContainer',
'dijit/layout/ContentPane',
'dojox/grid/DataGrid',
'codechecker/hashHelper',
'codechecker/util'],
function (declare, dom, ItemFileWriteStore, topic, Dialog, Button,
RadioButton, TextBox, BorderContainer, ContentPane, DataGrid, util) {
RadioButton, TextBox, BorderContainer, ContentPane, DataGrid, hashHelper,
util) {

/**
* This function helps to format a data grid cell with two radio buttons.
Expand Down Expand Up @@ -107,7 +109,10 @@ function (declare, dom, ItemFileWriteStore, topic, Dialog, Button,

switch (evt.cell.field) {
case 'name':
topic.publish('openRun', { runData : item.runData[0] });
hashHelper.setStateValues({
'run' : item.runData[0].name,
'tab' : item.runData[0].name
});
break;

case 'del':
Expand Down

0 comments on commit e64b4c0

Please sign in to comment.