diff options
| author | julie <julie@surfer-172-29-0-85-hotspot.internet-for-guests.com> | 2017-01-23 17:59:26 -0500 |
|---|---|---|
| committer | julie <julie@surfer-172-29-0-85-hotspot.internet-for-guests.com> | 2017-01-23 17:59:26 -0500 |
| commit | 2c41f6b41de6ee1a2ae83e62b8a15ced677a419e (patch) | |
| tree | 9fe4fb9e1d89ad6c3444eac5b5d6696b820775a6 /StoneIsland/www/js/lib/products/CollectionView.js | |
| parent | 267c9ed075b5355f463b8f2ad17e10880f14dfc8 (diff) | |
build
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){ |
