diff --git a/scripts/buildfire/components/pluginInstance/sortableList.js b/scripts/buildfire/components/pluginInstance/sortableList.js index 83a00ff7..2a684be5 100644 --- a/scripts/buildfire/components/pluginInstance/sortableList.js +++ b/scripts/buildfire/components/pluginInstance/sortableList.js @@ -124,12 +124,17 @@ buildfire.components.pluginInstance.sortableList.prototype = { this._toggleAddButton("disable"); }, // this method allows you to replace the slider image or append to then if appendItems = true - loadItems: function (items, appendItems) { + loadItems: function (items, appendItems, showPlugin) { if (items && items instanceof Array) { if (!appendItems && this.items.length !== 0) { // here we want to remove any existing items since the user of the component don't want to append items this._removeAll(); } + if(appendItems=='loadAll' || showPlugin=='loadAll'){ + this._loadAllItems = true; + this.selector.querySelector(this.loadAllSelector).setAttribute("checked", true); + this._toggleAddButton("disable"); + } for (var i = 0; i < items.length; i++) { this.items.push(items[i]);