ListingOtherAutoMappingHandler = Class.create(ActionHandler, { //---------------------------------- // todo next (temp solution) options: {}, setOptions: function(options) { this.options = Object.extend(this.options,options); return this; }, //---------------------------------- run: function() { this.mapProductsAuto( this.gridHandler.getSelectedProductsString() ); }, //---------------------------------- mapProductsAuto: function(product_ids) { var self = this; var selectedProductsString = product_ids; var selectedProductsArray = selectedProductsString.split(","); if (selectedProductsString == '' || selectedProductsArray.length == 0) { return; } var maxProductsInPart = 10; var result = new Array(); for (var i=0;i= 100) { ListingProgressBarObj.setPercents(100,0); } else { ListingProgressBarObj.setPercents(percents,1); } if (transport.responseText == 1) { isFailed = 1; } setTimeout(function() { self.sendPartsOfProducts(parts,totalPartsCount,isFailed); },500); } }); } //---------------------------------- });