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

select2 delay #98

Open
ceroz opened this issue Dec 6, 2013 · 0 comments
Open

select2 delay #98

ceroz opened this issue Dec 6, 2013 · 0 comments

Comments

@ceroz
Copy link

ceroz commented Dec 6, 2013

untitled-2
After I refresh/load the page I can see a 3 sec delay untill the select object will be styled properly. Image describes what i mean.

Why did you close ? This is your plugin issue because if i type - alert("sss") in the first line of select2.js it will show alert immediately without any delay. So don't say it's happening because of my files.

Maybe someone had similar problem, leave it for now please.

I'll give more details soon

Fixed:
meta-box.js

There is no call for _metabox_fields.init(); before - window.setTimeout('_metabox_fields.init();',2000); // 170 line

Solution:

  1. Delete 169 and 170 line - lack of this step will result in another issue for repeater block (toggle)

    //call object init in delay

    window.setTimeout('_metabox_fields.init();',2000);
  2. Insert _metabox_fields.init(); after jQuery(document).ready(function($) { // 15 line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants