Explorar el Código

HUE-2536 [jb] Failed filter shows other statuses

Updated running dashboard update mechanism
Enrico Berti hace 11 años
padre
commit
a998b67777
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      apps/jobbrowser/src/jobbrowser/templates/jobs.mako

+ 6 - 1
apps/jobbrowser/src/jobbrowser/templates/jobs.mako

@@ -296,7 +296,12 @@ ${ components.menubar() }
       }
       else {
         isUpdating = true;
-        _url += "&state=running";
+        if ($(".btn-status.active").length > 0) {
+          _url += "&state=" + $(".btn-status.active").data("value");
+        }
+        else {
+          _url += "&state=running";
+        }
       }
 
       _url += "&user=" + $("#userFilter").val().trim();