mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-15 00:38:42 +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)
|
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 || {}));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user