Untitled

mail@pastecode.io avatar
unknown
javascript
3 years ago
506 B
0
Indexable
Never
/**
 * Adds selected items.
 * @private
 */
addSelectedItems: function(selectedConfig) {
	this.selectedRows = selectedConfig.selectedRows.getItems();
	if (this.isNotEmpty(selectedConfig.filters)) {
		this.set("LookupFilters", selectedConfig.filters);
		this.multiAddRecords();
	} else {
		var batchQuery = this.createBatchQueryForAddNewSelectedItems();
		if (batchQuery && batchQuery.queries.length) {
			this.showBodyMask();
			batchQuery.execute(this.handleAfterInserted, this);
		}
	}
},