- Timestamp:
- 05/11/16 16:50:29 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Scripts/Hubs/ProgressHubber.js
r13841 r13844 2 2 3 3 $(function () { 4 // $.connection.hub.logging = true; 4 // $.connection.hub.logging = true; 5 $("#success-alert").hide(); 6 5 7 var v = document.getElementById("userId").innerHTML; 6 8 console.log(v); … … 27 29 28 30 }; 29 hubber.client.processRepit = function (name, repit) { 30 if (name === "failed") { 31 window.alert("Something went wrong while changing the repititions, please try again") 32 } 33 else 34 window.alert("Repititions for " + name + " has been changed to " + repit + ". These changes are not shown in the interface but happen directly after uploading or saving."); 31 32 hubber.client.saveComplete = function (text) { 33 $("#succText").html(text); 34 $("#success-alert").alert(); 35 $("#success-alert").fadeTo(2000, 500).slideUp(500, function () { 36 $("#success-alert").hide(); 37 }); 35 38 } 36 hubber.client.dataNotSupported = function (name) { 37 window.alert("Parameter " + name + " could not be changed for it is a fixed parameter. All changes done in this view are not saved to Hive."); 39 hubber.client.createAlert = function (text, type) { 40 $("#logs").html( 41 "<div class='alert alert-" + type + " alert-dismissible fade in' role='alert'> <button type='button' class='close' data-dismiss='alert' aria-label='Close'> " + 42 "<span aria-hidden='true'>×</span> </button> " + text + "</div>" + $("#logs").html()); 38 43 } 39 44 hubber.client.formatWrong = function (name, type) { 40 window.alert("Parameter " + name + " could not be changed, the format for "+type+ " was wrong. Make sure you follow the example exactly. No changes made on Hive");45 addAlert("Format wrong for " + name + " of type " + type + ". Make sure you follow the right format pattern.", "warning"); 41 46 } 42 47 });
Note: See TracChangeset
for help on using the changeset viewer.