summaryrefslogtreecommitdiff
path: root/assets/js/components/external-task-view.js
blob: b5b8f77a33464e17c8c603ce22e71a44642d8914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
KB.component('external-task-view', function (containerElement, options) {

    this.render = function () {
        KB.dom(containerElement).html('<div id="external-task-view"><i class="fa fa-spinner fa-2x fa-pulse"></div>');

        $.ajax({
            cache: false,
            url: options.url,
            success: function(data) {
                KB.dom(containerElement).html('<div id="external-task-view">' + data + '</div>');
            }
        });
    };
});