Merge "Make use of OOUI methods .getItemCount() and .isEmpty()"
This commit is contained in:
commit
34951c0538
2 changed files with 4 additions and 4 deletions
|
|
@ -1654,7 +1654,7 @@
|
|||
);
|
||||
button.on( 'click', removeDynamicParamWidget, [ name, layout ] );
|
||||
that.widgets[ name ] = widget;
|
||||
dynamicFieldset.addItems( [ layout ], dynamicFieldset.getItems().length - 1 );
|
||||
dynamicFieldset.addItems( [ layout ], dynamicFieldset.getItemCount() - 1 );
|
||||
widget.focus();
|
||||
|
||||
dynamicParamNameWidget.setValue( '' );
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@
|
|||
this.resetRows();
|
||||
this.itemCache = {};
|
||||
this.processQueueResults( items );
|
||||
if ( this.results.getItems().length > 0 ) {
|
||||
if ( !this.results.isEmpty() ) {
|
||||
this.lazyLoadResults();
|
||||
}
|
||||
|
||||
|
|
@ -181,8 +181,8 @@
|
|||
}
|
||||
|
||||
search.query.popPending();
|
||||
search.noItemsMessage.toggle( search.results.getItems().length === 0 );
|
||||
if ( search.results.getItems().length > 0 ) {
|
||||
search.noItemsMessage.toggle( search.results.isEmpty() );
|
||||
if ( !search.results.isEmpty() ) {
|
||||
search.lazyLoadResults();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue