Commit 2883642d authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Fixed bug in QfqForm#handleNewClick(): Use event.deledateTarget instead of...

Fixed bug in QfqForm#handleNewClick(): Use event.deledateTarget instead of event.target. From jQuery Documentation:

event.delegateTarget::
 The element where the currently-called jQuery event handler was attached.

That's what we want, because we require the href attribute of anchor.
parent d27ec30b
......@@ -191,7 +191,7 @@ var QfqNS = QfqNS || {};
*/
n.QfqForm.prototype.handleNewClick = function (event) {
event.preventDefault();
var anchorTarget = event.target.getAttribute("href");
var anchorTarget = event.delegateTarget.getAttribute("href");
this.lastButtonPress = "new";
if (this.form.getFormChanged()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment