Merge "Match section issues to section number"
This commit is contained in:
commit
ef63ced9b4
|
@ -217,8 +217,12 @@
|
||||||
createBanner( $lead, label, 0, inline );
|
createBanner( $lead, label, 0, inline );
|
||||||
if ( isInGroupB ) {
|
if ( isInGroupB ) {
|
||||||
// parse other sections but only in group B. In treatment A no issues are shown for sections.
|
// parse other sections but only in group B. In treatment A no issues are shown for sections.
|
||||||
$lead.nextAll( '[class^="mf-section"]' ).each( function ( i, sectionEl ) {
|
$lead.nextAll( 'h1,h2,h3,h4,h5,h6' ).each( function ( i, headingEl ) {
|
||||||
createBanner( $( sectionEl ), label, i + 1, inline );
|
var $headingEl = $( headingEl ),
|
||||||
|
$section = $headingEl.next(),
|
||||||
|
sectionNum = $headingEl.find( '.edit-page' ).data( 'section' );
|
||||||
|
|
||||||
|
createBanner( $section, label, sectionNum, inline );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue