From 49c61bac1e0e75b28ade485a0066db46d29aa6b5 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 5 Jul 2017 10:20:37 +0200 Subject: [PATCH] Pull out href action to generalUI --- UI/Component/Table.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/UI/Component/Table.js b/UI/Component/Table.js index f8d95e5..8a4a91c 100644 --- a/UI/Component/Table.js +++ b/UI/Component/Table.js @@ -65,14 +65,5 @@ */ jsOMS.UI.Component.Table.prototype.bindElement = function (e) { - const rows = e.querySelectorAll('[data-href]'), - length = rows.length; - - for(let i = 0; i < length; i++) { - rows[i].addEventListener('click', function(event) { - jsOMS.preventAll(event); - window.location = jsOMS.Uri.UriFactory.build(this.getAttribute('data-href')); - }); - } }; }(window.jsOMS = window.jsOMS || {}));