Pull out href action to generalUI

This commit is contained in:
Dennis Eichhorn 2017-07-05 10:20:37 +02:00 committed by GitHub
parent d898e200e4
commit 49c61bac1e

View File

@ -65,14 +65,5 @@
*/ */
jsOMS.UI.Component.Table.prototype.bindElement = function (e) 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 || {})); }(window.jsOMS = window.jsOMS || {}));