- Timestamp:
- 03/16/16 16:57:46 (9 years ago)
- 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 38 38 text-align: center; 39 39 } 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 31 31 32 32 var jobname = prompt("Please enter a job name", "Job"); 33 if (jobname != "") {33 if (jobname && jobname != "" && jobname != null) { 34 34 hubber.server.changeName(jobname); 35 35 document.getElementById("fakehiveadd").style.display = "none"; … … 40 40 } 41 41 function toggleChild(arr, idchilds) { 42 console.log(arr );42 console.log(arr + " toggled"); 43 43 hubber.server.toggleChild(arr); 44 44 if ($("#childs" + idchilds).css("display") == "none") … … 47 47 $("#childs" + idchilds).css("display", "none"); 48 48 } 49 function 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 } 73 function resetPrior(id) { 74 document.getElementById("prior" + id).className = "btn dropdown-toggle "; 75 }
Note: See TracChangeset
for help on using the changeset viewer.