From a0a92e094115ab569a5a5afb469b104f7e2bd865 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Mon, 27 Nov 2017 13:06:56 -0500 Subject: [PATCH] LP#1734737: Display originating template UI Until the (planned for 3.1) ability to clone XUL-created reports in the web staff client is completed, it would be useful to at least display to the user the origin UI in which a template was created. This will allow staff to, for the immediate term, decide which UI they should use to deal with a particular template, re cloning etc. Signed-off-by: Mike Rylander Signed-off-by: Chris Sharp Signed-off-by: Galen Charlton --- Open-ILS/web/opac/common/js/fm_table_conf.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Open-ILS/web/opac/common/js/fm_table_conf.js b/Open-ILS/web/opac/common/js/fm_table_conf.js index 948fb651e9..8879efe4be 100644 --- a/Open-ILS/web/opac/common/js/fm_table_conf.js +++ b/Open-ILS/web/opac/common/js/fm_table_conf.js @@ -125,6 +125,7 @@ var FM_TABLE_DISPLAY = { 'name', 'description', 'docs', + 'ui', 'create_time', 'owner', ], @@ -143,6 +144,13 @@ var FM_TABLE_DISPLAY = { return elem('a', args, 'External Documentation') } return text(''); + }, + ui : function (t) { + var d = JSON2js(t.data()); + if (d.version >= 5) { + return text('WebStaff'); + } + return text('XUL'); } }, sortdata : [ 'name', 1 ] -- 2.11.0