attach data to pjaxified links so they can't be pjaxified twice. add simple refresh method
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
module.exports = function(el) {
|
||||
switch (el.tagName.toLowerCase()) {
|
||||
case "a":
|
||||
this.attachLink(el)
|
||||
// only attach link if el does not already have link attached
|
||||
if (!el.getAttribute("data-pjax-enabled")) {
|
||||
this.attachLink(el)
|
||||
}
|
||||
break
|
||||
|
||||
case "form":
|
||||
|
||||
Reference in New Issue
Block a user