mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
Add an option to ignore pjax request on some links.
This commit is contained in:
@@ -61,6 +61,10 @@
|
||||
|
||||
var link = event.currentTarget
|
||||
|
||||
// Ignore links with data-pjax="0"
|
||||
if ($(link).data('pjax')==0)
|
||||
return
|
||||
|
||||
if (link.tagName.toUpperCase() !== 'A')
|
||||
throw "$.fn.pjax or $.pjax.click requires an anchor element"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user