зеркало из https://github.com/mozilla/pjs.git
open in new tab keeps the first selected only.
This commit is contained in:
Родитель
b7037342ab
Коммит
bbae3581d4
|
@ -256,6 +256,7 @@ CaseGrid = function(params, cfg){
|
|||
|
||||
Ext.extend(CaseGrid, Ext.grid.EditorGridPanel, {
|
||||
onContextClick: function(grid, index, e){
|
||||
grid.selindex = index;
|
||||
if(!this.menu){ // create context menu on first right click
|
||||
this.menu = new Ext.menu.Menu({
|
||||
id:'case_list_ctx_menu',
|
||||
|
@ -537,7 +538,7 @@ Ext.extend(CaseGrid, Ext.grid.EditorGridPanel, {
|
|||
},{
|
||||
text: 'View Test Case in a New Tab',
|
||||
handler: function(){
|
||||
window.open('tr_show_case.cgi?case_id=' + grid.store.getAt(index).get('case_id'));
|
||||
window.open('tr_show_case.cgi?case_id=' + grid.store.getAt(grid.selindex).get('case_id'));
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
|
|
@ -548,6 +548,7 @@ CaseRunGrid = function(params, run){
|
|||
|
||||
Ext.extend(CaseRunGrid, Ext.grid.EditorGridPanel, {
|
||||
onContextClick: function(grid, index, e){
|
||||
grid.selindex = index;
|
||||
if(!this.menu){ // create context menu on first right click
|
||||
this.menu = new Ext.menu.Menu({
|
||||
id:'caserun-ctx-menu',
|
||||
|
@ -749,7 +750,7 @@ Ext.extend(CaseRunGrid, Ext.grid.EditorGridPanel, {
|
|||
},{
|
||||
text: 'View Test Case in a New Tab',
|
||||
handler: function(){
|
||||
window.open('tr_show_case.cgi?case_id=' + grid.store.getAt(index).get('case_id'));
|
||||
window.open('tr_show_case.cgi?case_id=' + grid.store.getAt(grid.selindex).get('case_id'));
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
|
|
@ -180,6 +180,7 @@ PlanGrid = function(params,cfg){
|
|||
|
||||
Ext.extend(PlanGrid, Ext.grid.EditorGridPanel, {
|
||||
onContextClick: function(grid, index, e){
|
||||
grid.selindex = index;
|
||||
if(!this.menu){ // create context menu on first right click
|
||||
this.menu = new Ext.menu.Menu({
|
||||
id:'plan-ctx-menu',
|
||||
|
@ -278,7 +279,7 @@ Ext.extend(PlanGrid, Ext.grid.EditorGridPanel, {
|
|||
},{
|
||||
text: 'View Test Plan in a New Tab',
|
||||
handler: function(){
|
||||
window.open('tr_show_plan.cgi?plan_id=' + grid.store.getAt(index).get('plan_id'));
|
||||
window.open('tr_show_plan.cgi?plan_id=' + grid.store.getAt(grid.selindex).get('plan_id'));
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
|
|
@ -233,6 +233,7 @@ RunGrid = function(params, cfg){
|
|||
|
||||
Ext.extend(RunGrid, Ext.grid.EditorGridPanel, {
|
||||
onContextClick: function(grid, index, e){
|
||||
grid.selindex = index;
|
||||
if(!this.menu){ // create context menu on first right click
|
||||
this.menu = new Ext.menu.Menu({
|
||||
id:'run-ctx-menu',
|
||||
|
@ -322,7 +323,7 @@ Ext.extend(RunGrid, Ext.grid.EditorGridPanel, {
|
|||
},{
|
||||
text: 'View Test Run in a New Tab',
|
||||
handler: function(){
|
||||
window.open('tr_show_run.cgi?run_id=' + grid.store.getAt(index).get('run_id'));
|
||||
window.open('tr_show_run.cgi?run_id=' + grid.store.getAt(grid.selindex).get('run_id'));
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче