2017-08-17 22:00:37 +05:30
|
|
|
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-unused-vars, no-return-assign, max-len */
|
2016-09-13 17:45:13 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
window.BuildArtifacts = (function() {
|
|
|
|
function BuildArtifacts() {
|
|
|
|
this.disablePropagation();
|
|
|
|
this.setupEntryClick();
|
|
|
|
}
|
2016-09-13 17:45:13 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
BuildArtifacts.prototype.disablePropagation = function() {
|
|
|
|
$('.top-block').on('click', '.download', function(e) {
|
|
|
|
return e.stopPropagation();
|
|
|
|
});
|
|
|
|
return $('.tree-holder').on('click', 'tr[data-link] a', function(e) {
|
|
|
|
return e.stopImmediatePropagation();
|
|
|
|
});
|
|
|
|
};
|
2016-09-13 17:45:13 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
BuildArtifacts.prototype.setupEntryClick = function() {
|
|
|
|
return $('.tree-holder').on('click', 'tr[data-link]', function(e) {
|
|
|
|
return window.location = this.dataset.link;
|
|
|
|
});
|
|
|
|
};
|
2016-09-13 17:45:13 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
return BuildArtifacts;
|
|
|
|
})();
|