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
Barely tested but it may work for you.
if ($this->pjaxContainer){ if (is_array($this->pjaxContainer)){ $firstContainer = $this->pjaxContainer[0]; $expression[] = "$.pjax.reload({container : '$firstContainer', timeout : $this->pjaxTimeout });"; for ($index = 0; $index < count($this->pjaxContainer)-1; $index++){ $container = $this->pjaxContainer[$index]; $nextContainer = $this->pjaxContainer[$index+1]; $expression[] = sprintf('$(\'%s\').one(\'pjax:end\', function () {$.pjax.reload({container: \'%s\'});});', $container, $nextContainer); } } else $expression[] = "$.pjax.reload({container : '$this->pjaxContainer', timeout : $this->pjaxTimeout });"; }
The text was updated successfully, but these errors were encountered:
Thanks. I am shall test it.
Sorry, something went wrong.
How you planed use it? I use only string for $pjaxContainer
No branches or pull requests
Barely tested but it may work for you.
The text was updated successfully, but these errors were encountered: