Quantcast
Channel: WordPress.org Forums » [WP-Filebase Download Manager] Support
Viewing all articles
Browse latest Browse all 1341

nelygus on "[Plugin: WP-Filebase Download Manager] Tree list not loaded on mobile"

$
0
0

I found the issue. It was on classes\Output.php the way scripts was loaded. On slower internet scripts, that was dependent on others was loaded after them. So there was some methods not implemented.

My code instead of what was there:

if('function' != typeof fel.treeview) {
        var d1 = jQuery.Deferred();
        var d2 = jQuery.Deferred();
        var d3 = jQuery.Deferred();
        jQuery.when(d3).done(function() {
            wpfb_initfb<?php echo $jss ?>();
        });

        d1.done(function() {
            jQuery.getScript('<?php echo esc_js($wp_scripts->registered['jquery-treeview-edit']->src); ?>').done(function() {
                d2.resolve();
            });
        });
        d2.done(function() {
            jQuery.getScript('<?php echo esc_js($wp_scripts->registered['jquery-treeview-async']->src); ?>').done(function() {
                d3.resolve();
            });
        });

         jQuery.getScript('<?php echo esc_js($wp_scripts->registered['jquery-treeview']->src); ?>').done(function() {
             d1.resolve();
         });
	} else {	wpfb_initfb<?php echo $jss ?>();	}

I hope it will help for someone else though Filebase Pro support was not helping at all(they didn't replied to any message I was writing to them..)


Viewing all articles
Browse latest Browse all 1341

Trending Articles