From 9a4cf5ca0ae04fe36bc9b8570a7664bf7afc048d Mon Sep 17 00:00:00 2001 From: Owen Stephens Date: Mon, 4 Dec 2017 09:45:50 +0000 Subject: [PATCH] Re-organise reconcile menu, removing qaResult --- .../views/data-table/menu-reconcile.js | 76 +++++++------------ 1 file changed, 28 insertions(+), 48 deletions(-) diff --git a/main/webapp/modules/core/scripts/views/data-table/menu-reconcile.js b/main/webapp/modules/core/scripts/views/data-table/menu-reconcile.js index 0db5be2e6..d67654747 100644 --- a/main/webapp/modules/core/scripts/views/data-table/menu-reconcile.js +++ b/main/webapp/modules/core/scripts/views/data-table/menu-reconcile.js @@ -214,6 +214,34 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) { } ); } + }, + { + id: "core/by-judgment-actions", + label: $.i18n._('core-views')["judg-actions"], + click: function() { + ui.browsingEngine.addFacet( + "list", + { + "name" : column.name + " "+$.i18n._('core-views')["judg-actions2"], + "columnName" : column.name, + "expression" : "cell.recon.judgmentAction" + } + ); + } + }, + { + id: "core/by-judgment-history-entries", + label: $.i18n._('core-views')["judg-hist"], + click: function() { + ui.browsingEngine.addFacet( + "list", + { + "name" : column.name + " "+$.i18n._('core-views')["hist-entries"], + "columnName" : column.name, + "expression" : "cell.recon.judgmentHistoryEntry" + } + ); + } }, {}, { @@ -319,54 +347,6 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) { } ] }, - { - id: "core/qa-facets", - label: $.i18n._('core-views')["qa-facets"], - submenu: [ - { - id: "core/by-qa-results", - label: $.i18n._('core-views')["qa-results"], - click: function() { - ui.browsingEngine.addFacet( - "list", - { - "name" : column.name + " "+$.i18n._('core-views')["qa-results2"], - "columnName" : column.name, - "expression" : "cell.recon.features.qaResult" - } - ); - } - }, - { - id: "core/by-judgment-actions", - label: $.i18n._('core-views')["judg-actions"], - click: function() { - ui.browsingEngine.addFacet( - "list", - { - "name" : column.name + " "+$.i18n._('core-views')["judg-actions2"], - "columnName" : column.name, - "expression" : "cell.recon.judgmentAction" - } - ); - } - }, - { - id: "core/by-judgment-history-entries", - label: $.i18n._('core-views')["judg-hist"], - click: function() { - ui.browsingEngine.addFacet( - "list", - { - "name" : column.name + " "+$.i18n._('core-views')["hist-entries"], - "columnName" : column.name, - "expression" : "cell.recon.judgmentHistoryEntry" - } - ); - } - } - ] - }, { id: "core/actions", label: $.i18n._('core-views')["actions"],