Pass the element that triggered Pjax to the pjax:send event
Closes #62.
This commit was merged in pull request #94.
This commit is contained in:
committed by
BehindTheMath
parent
0916c74171
commit
d3d5ef7a11
@@ -60,7 +60,9 @@ var formAction = function(el, event){
|
||||
|
||||
el.setAttribute(attrClick, "submit");
|
||||
|
||||
this.loadUrl(virtLinkElement.href, clone(this.options))
|
||||
const options = clone(this.options);
|
||||
options.triggerElement = el;
|
||||
this.loadUrl(virtLinkElement.href, options);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user