Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/16 16:57:46 (9 years ago)
Author:
jlodewyc
Message:

#2582 Distribution childs and priority done. Display current jobs and start graphs

Location:
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot/css/StyleSheet.css

    r13656 r13712  
    3838    text-align: center;
    3939}
     40.panel-warning > .panel-heading{
     41    background-image: linear-gradient(to bottom,#eb9114 0,#f1b25b 100%)!important;
     42    color:white!important;
     43}
     44.panel-danger > .panel-heading{
     45    background-image: linear-gradient(to bottom,#c12e2a 0,#d9534f 100%)!important;
     46    color:white!important;
     47}
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot/js/Scripts/hubber.js

    r13696 r13712  
    3131
    3232    var jobname = prompt("Please enter a job name", "Job");
    33     if (jobname != "") {
     33    if (jobname && jobname != "" && jobname != null) {
    3434        hubber.server.changeName(jobname);
    3535        document.getElementById("fakehiveadd").style.display = "none";
     
    4040}
    4141function toggleChild(arr, idchilds) {
    42     console.log(arr);
     42    console.log(arr + " toggled");
    4343    hubber.server.toggleChild(arr);
    4444    if ($("#childs" + idchilds).css("display") == "none")
     
    4747        $("#childs" + idchilds).css("display", "none");
    4848}
     49function changePriority(arr, prior, idprior) {
     50    console.log(arr + " to priority " + prior);
     51    hubber.server.changePriority(arr, prior);
     52    resetPrior(idprior);
     53    switch (prior) {
     54        case 0:
     55            document.getElementById("prior" + idprior).className += "btn-default";
     56            document.getElementById("prior" + idprior).innerHTML = "Low"
     57            break;
     58        case 1:
     59            document.getElementById("prior" + idprior).className += "btn-info";
     60            document.getElementById("prior" + idprior).innerHTML = "Normal"
     61            break;
     62        case 2:
     63            document.getElementById("prior" + idprior).className += "btn-warning";
     64            document.getElementById("prior" + idprior).innerHTML = "Urgent"
     65            break;
     66        case 3:
     67            document.getElementById("prior" + idprior).className += "btn-danger";
     68            document.getElementById("prior" + idprior).innerHTML = "Critical";
     69            break;
     70    }
     71    document.getElementById("prior" + idprior).innerHTML += "<span class='caret'></span>";
     72}
     73function resetPrior(id) {
     74    document.getElementById("prior" + id).className = "btn dropdown-toggle ";
     75}
Note: See TracChangeset for help on using the changeset viewer.