mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-14 08:28:40 +00:00
Add default action prevention
This commit is contained in:
parent
9efd02bcff
commit
6aaf28cc6c
|
|
@ -127,6 +127,10 @@
|
||||||
// Register event for first action
|
// Register event for first action
|
||||||
e.addEventListener(listener.listener, function (event)
|
e.addEventListener(listener.listener, function (event)
|
||||||
{
|
{
|
||||||
|
if(listener.preventDefault) {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
|
||||||
self.runAction(this, listener, listener.action[0], event);
|
self.runAction(this, listener, listener.action[0], event);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user