aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnode_modules/montage/ui/picasa-carousel.reel/picasa-carousel.html3
-rw-r--r--node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js14
2 files changed, 15 insertions, 2 deletions
diff --git a/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.html b/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.html
index 6774026b..34f207b4 100755
--- a/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.html
+++ b/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.html
@@ -15,7 +15,8 @@
15 "prototype": "montage/ui/picasa-carousel.reel", 15 "prototype": "montage/ui/picasa-carousel.reel",
16 "properties": { 16 "properties": {
17 "element": {"#": "montage-google-picasa-carousel"}, 17 "element": {"#": "montage-google-picasa-carousel"},
18 "searchResultsList": {"@": "searchResultsList"} 18 "searchResultsList": {"@": "searchResultsList"},
19 "flow": {"@": "flow1"}
19 } 20 }
20 }, 21 },
21 "searchResultsController": { 22 "searchResultsController": {
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 1f5e7dd0..b41df9a6 100644
--- a/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js
+++ b/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js
@@ -20,6 +20,16 @@ var PicasaCarousel = exports.PicasaCarousel = Montage.create(Component, /** @len
20 value: null 20 value: null
21 }, 21 },
22 22
23 flow: {
24 value: null
25 },
26
27 initialPosition: {
28 value: 2300
29 },
30
31
32
23 _queryParameter: { 33 _queryParameter: {
24 enumerable: false, 34 enumerable: false,
25 value: null 35 value: null
@@ -37,7 +47,7 @@ var PicasaCarousel = exports.PicasaCarousel = Montage.create(Component, /** @len
37 47
38 resultCount: { 48 resultCount: {
39 enumerable: false, 49 enumerable: false,
40 value: 20 50 value: 40
41 }, 51 },
42 52
43 prepareForDraw: { 53 prepareForDraw: {
@@ -103,6 +113,8 @@ var PicasaCarousel = exports.PicasaCarousel = Montage.create(Component, /** @len
103 value: function(evt) { 113 value: function(evt) {
104 var response = JSON.parse(evt.target.responseText); 114 var response = JSON.parse(evt.target.responseText);
105 this.searchResults = response.feed.entry; 115 this.searchResults = response.feed.entry;
116 this.flow.length = this.initialPosition;
117 this.flow.origin = this.initialPosition;
106 this.isSearching = false; 118 this.isSearching = false;
107 } 119 }
108 }, 120 },