diff options
Diffstat (limited to 'StoneIsland/www/js/lib/products/CollectionView.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/products/CollectionView.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/products/CollectionView.js b/StoneIsland/www/js/lib/products/CollectionView.js index b9a7755f..671d36b3 100755 --- a/StoneIsland/www/js/lib/products/CollectionView.js +++ b/StoneIsland/www/js/lib/products/CollectionView.js @@ -14,6 +14,7 @@ var CollectionView = ScrollableView.extend({ "mousedown .item": "touchstart", "mousemove .item": "touchmove", "mouseup .item": "touchend", + "touchstart h1": "showDepartmentSelector", }, initialize: function(){ @@ -21,7 +22,7 @@ var CollectionView = ScrollableView.extend({ this.$content = this.$(".content") this.$loader = this.$(".loader") this.scroller = new IScroll('#collection', app.iscroll_options) - this.filterView = new CategoryFilter ({ parent: this }) + this.filterView = new DepartmentFilter ({ parent: this }) }, show: function(){ @@ -85,7 +86,7 @@ var CollectionView = ScrollableView.extend({ } console.log(">>>>>>>> YES ") if (! this.loaded) { - console.log("populate 3") + console.log("populate 3", data.SearchResponseFull.Results.Items.length) this.loaded = true this.$loader.hide() this.$content.empty() @@ -140,6 +141,10 @@ var CollectionView = ScrollableView.extend({ this.$title.html(this.collectionName) }, + showDepartmentSelector: function(){ + this.filterView.filter() + }, + firstTouch: { x: 0, y: 0, id: "" }, lastTouch: { x: 0, y: 0, id: "" }, touchstart: function(e){ |
