Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/16 16:50:29 (9 years ago)
Author:
jlodewyc
Message:

#2582 Optimizing open file view by cutting down batches to 1. Logging system in navbar. Start authenticationCheck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Scripts/Hubs/ProgressHubber.js

    r13841 r13844  
    22
    33$(function () {
    4    // $.connection.hub.logging = true;
     4    // $.connection.hub.logging = true;
     5    $("#success-alert").hide();
     6
    57    var v = document.getElementById("userId").innerHTML;
    68    console.log(v);
     
    2729       
    2830    };
    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        });
    3538    }
    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'>&times;</span> </button> " + text + "</div>" + $("#logs").html());
    3843    }
    3944    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");
    4146    }
    4247});
Note: See TracChangeset for help on using the changeset viewer.