[wp-trac] [WordPress Trac] #27599: Twenty Fourteen: featured content in customizer preview
WordPress Trac
noreply at wordpress.org
Mon Mar 31 23:47:00 UTC 2014
#27599: Twenty Fourteen: featured content in customizer preview
-----------------------------------------+------------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 3.8.1
Severity: normal | Resolution:
Keywords: has-patch reporter-feedback | Focuses:
-----------------------------------------+------------------------------
Comment (by afercia):
ok maybe I got why.
I had define('SCRIPT_DEBUG', false) and maybe you have set it to true.
So I was getting the minified version.
Just spotted a difference between suggest.js and suggest.min.js :( so bad.
In suggest.js (not minified) around line 253 I see:
{{{
$input.trigger('change');
}}}
and that's the 'change' event that triggers the refresh, but in the
minified version there's no change event triggered.
This difference is visible also in trunk:
http://develop.svn.wordpress.org/trunk/src/wp-
includes/js/jquery/suggest.js
and
http://develop.svn.wordpress.org/trunk/src/wp-
includes/js/jquery/suggest.min.js
just do a text search for "change".
So sorry, seems it was not Twenty Fourteen to blame :) and I was basically
applying the right fix in the wrong place :)
Can you please confirm you're testing with the not-minified version? If
you can replicate this issue testing with the minified version, maybe we
should update to the right component.
Well I would also add a
{{{
$input.focus();
}}}
just before the 'change'.
Thx and sooorry
Andrea
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27599#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list