From ecc07ea61712437a3e5ea5312a20213234b5bd74 Mon Sep 17 00:00:00 2001 From: "tabish.khan" Date: Wed, 9 Mar 2016 17:17:09 +0530 Subject: [PATCH] Fixed the Pivotal ticket #115299817 --- .../buildfire/components/pluginInstance/sortableList.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]);