Repository: oozie
Updated Branches:
  refs/heads/master ad2fa21e3 -> 58bc84a3e


OOZIE-2222 Oozie UI parent job should be clickable


Project: http://git-wip-us.apache.org/repos/asf/oozie/repo
Commit: http://git-wip-us.apache.org/repos/asf/oozie/commit/58bc84a3
Tree: http://git-wip-us.apache.org/repos/asf/oozie/tree/58bc84a3
Diff: http://git-wip-us.apache.org/repos/asf/oozie/diff/58bc84a3

Branch: refs/heads/master
Commit: 58bc84a3e0a5b6ef86e788d32b469d6cb9e268f9
Parents: ad2fa21
Author: Purshotam Shah <[email protected]>
Authored: Mon Dec 21 14:42:32 2015 -0800
Committer: Purshotam Shah <[email protected]>
Committed: Mon Dec 21 14:42:32 2015 -0800

----------------------------------------------------------------------
 release-log.txt                         |  1 +
 webapp/src/main/webapp/oozie-console.js | 28 +++++++++++++++++++++-------
 2 files changed, 22 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/oozie/blob/58bc84a3/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index 72da838..69d8697 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -1,5 +1,6 @@
 -- Oozie 4.3.0 release (trunk - unreleased)
 
+OOZIE-2222 Oozie UI parent job should be clickable (puru)
 OOZIE-2407 AbandonedService should not send mail if there is no abandoned 
coord (puru)
 OOZIE-2402 oozie-setup.sh sharelib create takes a long time on large clusters 
(yalovyyi via rkanter)
 OOZIE-2185 Make oozie cli source conf/oozie-client-env.sh (grimesmi via 
rkanter)

http://git-wip-us.apache.org/repos/asf/oozie/blob/58bc84a3/webapp/src/main/webapp/oozie-console.js
----------------------------------------------------------------------
diff --git a/webapp/src/main/webapp/oozie-console.js 
b/webapp/src/main/webapp/oozie-console.js
index 574832f..635d949 100644
--- a/webapp/src/main/webapp/oozie-console.js
+++ b/webapp/src/main/webapp/oozie-console.js
@@ -501,13 +501,21 @@ function jobDetailsPopup(response, request) {
             name: 'group',
             width: 400,
             value: jobDetails["group"]
-        }, {
+        }, new Ext.form.TriggerField({
             fieldLabel: 'Parent Coord',
             editable: false,
             name: 'parentId',
             width: 400,
-            value: jobDetails["parentId"]
-        }, {
+            value: jobDetails["parentId"],
+            triggerClass: 'x-form-search-trigger',
+            onTriggerClick: function() {
+                if (jobDetails["parentId"]) {
+                    var jobId = jobDetails["parentId"];
+                    jobId = jobId.substring(0, jobId.indexOf("-C@") + 2)
+                    window.open(oozie_host + "?job=" + jobId);
+                }
+            }
+        }), {
             fieldLabel: 'Create Time',
             editable: false,
             name: 'createdTime',
@@ -1161,13 +1169,19 @@ function coordJobDetailsPopup(response, request) {
             name: 'timeUnit',
             width: 400,
             value: jobDetails["timeUnit"]
-        }, {
+        }, new Ext.form.TriggerField({
             fieldLabel: 'Parent Bundle',
             editable: false,
             name: 'bundleId',
             width: 400,
-            value: jobDetails["bundleId"]
-        }, {
+            value: jobDetails["bundleId"],
+            triggerClass: 'x-form-search-trigger',
+            onTriggerClick : function() {
+                if (jobDetails["bundleId"]) {
+                    window.open(oozie_host + "?job=" + jobDetails["bundleId"]);
+                }
+            }
+        }), {
             fieldLabel: 'Start Time',
             editable: false,
             name: 'startTime',
@@ -1507,7 +1521,7 @@ function coordJobDetailsPopup(response, request) {
                 autoScroll: true,
                 value: jobDetails["conf"]
             })
-       },{
+    },{
            title: 'Coord Job Log',
            items: jobLogArea,
            id: 'coord_job_log',

Reply via email to