limit maximum of 5 suggestions displayed in any given context
This commit is contained in:
parent
ae3f397855
commit
c1a2821410
|
@ -259,6 +259,11 @@
|
|||
|
||||
// render the promo content
|
||||
for ( var i in promos ) {
|
||||
// only show a max of 5 suggestions per container
|
||||
if ( i >= 5 ) {
|
||||
break;
|
||||
}
|
||||
|
||||
var linkText = promos[ i ]['link-text'];
|
||||
var linkoutIsButton = false;
|
||||
if ( promos[ i ]['button-text'] ) {
|
||||
|
|
Loading…
Reference in New Issue