Selaa lähdekoodia

HUE-9110 [oozie] Fix widget progress bar caused by PR798

Ying Chen 5 vuotta sitten
vanhempi
commit
653bcc0398

+ 1 - 1
apps/oozie/src/oozie/templates/dashboard/list_oozie_workflow_graph.mako

@@ -87,7 +87,7 @@ ${ dashboard.import_layout() }
                     _w = viewModel.getWidgetById('33430f0f-ebfa-c3ec-f237-3e77efa03d0a');
                   }
                   else {
-                    var actionName = actionId.toLowerCase().substr(1)
+                    var actionName = actionId.toLowerCase().substr(actionId.lastIndexOf('-') + 1)
                     if ($("[id^=wdg_" + actionName + "]").length > 0) {
                       _w = viewModel.getWidgetById($("[id^=wdg_" + actionName + "]").attr("id").substr(4));
                     }