Skip to content

Commit

Permalink
Merge pull request #200 from kmtabish/master
Browse files Browse the repository at this point in the history
Fixed the Pivotal ticket #115299817(Show all plugin issue)
  • Loading branch information
DanielHindi committed Mar 9, 2016
2 parents 790b6c8 + ecc07ea commit 0aab205
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 0aab205

Please sign in to comment.