Repository: oozie
Updated Branches:
  refs/heads/master e94a345ac -> 9f97e5278


amend-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/9f97e527
Tree: http://git-wip-us.apache.org/repos/asf/oozie/tree/9f97e527
Diff: http://git-wip-us.apache.org/repos/asf/oozie/diff/9f97e527

Branch: refs/heads/master
Commit: 9f97e52789fa74b1efe1d07d17497427435e457b
Parents: e94a345
Author: Purshotam Shah <[email protected]>
Authored: Fri Jan 29 09:54:34 2016 -0800
Committer: Purshotam Shah <[email protected]>
Committed: Fri Jan 29 09:54:34 2016 -0800

----------------------------------------------------------------------
 webapp/src/main/webapp/oozie-console.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/oozie/blob/9f97e527/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 635d949..bd18506 100644
--- a/webapp/src/main/webapp/oozie-console.js
+++ b/webapp/src/main/webapp/oozie-console.js
@@ -511,7 +511,9 @@ function jobDetailsPopup(response, request) {
             onTriggerClick: function() {
                 if (jobDetails["parentId"]) {
                     var jobId = jobDetails["parentId"];
-                    jobId = jobId.substring(0, jobId.indexOf("-C@") + 2)
+                    if(jobId.indexOf("-C@") > 0){
+                        jobId = jobId.substring(0, jobId.indexOf("-C@") + 2)
+                    }
                     window.open(oozie_host + "?job=" + jobId);
                 }
             }

Reply via email to