mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-29 09:48:40 +00:00
Pull out href action to generalUI
This commit is contained in:
parent
d898e200e4
commit
49c61bac1e
|
|
@ -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 || {}));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user