Skip to content
New issue

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

CTreeView.saveDataAsHtml() outputs no placeholders for async loading #1504

Closed
MonkeyMaster opened this issue Oct 1, 2012 · 0 comments
Closed

Comments

@MonkeyMaster
Copy link

Async tree must output the following placeholders for nodes with hasChildren=true:

<ul>
<li><span class="placeholder"> </span></li>
</ul>

Two lines of code fix this issue:

<?php
                if(!empty($node['children']))
                {
                    $html.="\n<ul>\n";
                    $html.=self::saveDataAsHtml($node['children']);
                    $html.="</ul>\n";
                }
                elseif(!empty($node['hasChildren']))
                    $html.="\n<ul>\n<li><span class=\"placeholder\"></span></li>\n</ul>\n";
@samdark samdark closed this as completed Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants