We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related issue in Yii2 - yiisoft/yii2#13300. Should be synchronized here.
This check:
// Ignore links with data-pjax="0" if ($(link).data('pjax') == 0) { return; }
needs to be modified accordingly too, because "" == 0 will evaluate to true.
"" == 0
true
Can be:
$(link).data('pjax') === 0)
(data returns 0 as number).
data
0
number
Or in case of a string which is returend by attr for example:
string
attr
$(link).attr('data-pjax') === '0'
Or maybe even better:
parseInt($(link).data('pjax')) === 0
The text was updated successfully, but these errors were encountered:
Fixed yiisoft#46: Allow "data-pjax" attribute with no value in handle…
bb39a98
…Click function
Merge pull request #47 from arogachev/46-data-pjax-no-value
aeb1a2d
Fixed #46: Allow "data-pjax" attribute with no value in handleClick function
No branches or pull requests
Related issue in Yii2 - yiisoft/yii2#13300. Should be synchronized here.
This check:
needs to be modified accordingly too, because
"" == 0
will evaluate totrue
.Can be:
(
data
returns0
asnumber
).Or in case of a
string
which is returend byattr
for example:Or maybe even better:
The text was updated successfully, but these errors were encountered: