aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-21 14:00:15 -0700
committerJose Antonio Marquez2012-03-21 14:00:15 -0700
commit47ccf0bb685fdaff4c5bdc767e9091a209e34a0f (patch)
tree932f3f057ce83707b1b9f23453c9cc28423f946a /node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js
parent2e17cd121711b7683c0f392902d6bc2b69fb5621 (diff)
parenta5b5ec05a032a5c21249857351b2af243584279c (diff)
downloadninja-47ccf0bb685fdaff4c5bdc767e9091a209e34a0f.tar.gz
Merge branch 'refs/heads/Ninja-Montage-Integration' into FileIO-Montage-Components
Diffstat (limited to 'node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js')
-rw-r--r--node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js b/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js
index b41df9a6..bdc74c83 100644
--- a/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js
+++ b/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js
@@ -111,10 +111,17 @@ var PicasaCarousel = exports.PicasaCarousel = Montage.create(Component, /** @len
111 111
112 handleSearchRequestLoad: { 112 handleSearchRequestLoad: {
113 value: function(evt) { 113 value: function(evt) {
114 var response = JSON.parse(evt.target.responseText); 114 var response = JSON.parse(evt.target.responseText),
115 previousOrigin = this.flow.origin;
115 this.searchResults = response.feed.entry; 116 this.searchResults = response.feed.entry;
116 this.flow.length = this.initialPosition; 117 if (this.flow.length === 0) {
117 this.flow.origin = this.initialPosition; 118 this.flow.length = this.initialPosition;
119 }
120 if (previousOrigin === 0) {
121 this.flow.origin = this.initialPosition;
122 } else {
123 this.flow.origin = previousOrigin;
124 }
118 this.isSearching = false; 125 this.isSearching = false;
119 } 126 }
120 }, 127 },