Skip to content

Commit

Permalink
Fixed the Pivotal ticket #115299817
Browse files Browse the repository at this point in the history
  • Loading branch information
kmtabish committed Mar 9, 2016
1 parent 0494c69 commit ecc07ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/buildfire/components/pluginInstance/sortableList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit ecc07ea

Please sign in to comment.