summaryrefslogtreecommitdiffabout
path: root/content
authorMichael Krelin <hacker@klever.net>2006-11-16 22:08:51 (UTC)
committer Michael Krelin <hacker@klever.net>2006-11-16 22:08:51 (UTC)
commit4b21b4fc5248322c10ffb24edfd5ec78ebcce824 (patch) (unidiff)
tree54557f61052727010a06d7ab243353a06204d155 /content
parentdd82dbcb0be6f49d58594bfbe3a3ae5f01c54e5c (diff)
downloadfireflix-4b21b4fc5248322c10ffb24edfd5ec78ebcce824.zip
fireflix-4b21b4fc5248322c10ffb24edfd5ec78ebcce824.tar.gz
fireflix-4b21b4fc5248322c10ffb24edfd5ec78ebcce824.tar.bz2
clear selection in photoset photos when changing the set
git-svn-id: http://svn.klever.net/kin/fireflix/trunk@228 fe716a7a-6dde-0310-88d9-d003556173a8
Diffstat (limited to 'content') (more/less context) (ignore whitespace changes)
-rw-r--r--content/fireflix.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/fireflix.js b/content/fireflix.js
index 2ee408f..24894df 100644
--- a/content/fireflix.js
+++ b/content/fireflix.js
@@ -123,24 +123,25 @@ var fireflix = {
123 getParentIndex: function(r) { return -1; }, 123 getParentIndex: function(r) { return -1; },
124 drop: function(r,o) { }, 124 drop: function(r,o) { },
125 canDropBeforeAfter: function(r,b) { return false }, 125 canDropBeforeAfter: function(r,b) { return false },
126 126
127 importXPR: function(xp) { 127 importXPR: function(xp) {
128 this.tree.beginUpdateBatch(); 128 this.tree.beginUpdateBatch();
129 this.photos = new Array(); 129 this.photos = new Array();
130 var n; while(n=xp.iterateNext()) { 130 var n; while(n=xp.iterateNext()) {
131 this.photos.push(new Photo(n)); 131 this.photos.push(new Photo(n));
132 } 132 }
133 this.rowCount = this.photos.length; 133 this.rowCount = this.photos.length;
134 this.tree.endUpdateBatch(); 134 this.tree.endUpdateBatch();
135 this.selection.clearSelection();
135 }, 136 },
136 load_photos: function(psid) { 137 load_photos: function(psid) {
137 var _this = this; 138 var _this = this;
138 this.fireflix.flickr.api_call( 139 this.fireflix.flickr.api_call(
139 { 140 {
140 method: 'flickr.photosets.getPhotos', 141 method: 'flickr.photosets.getPhotos',
141 auth_token: 'default', 142 auth_token: 'default',
142 photoset_id: psid, 143 photoset_id: psid,
143 extras: 'license,date_upload,date_taken,owner_name,icon_server,original_format,last_update' 144 extras: 'license,date_upload,date_taken,owner_name,icon_server,original_format,last_update'
144 }, function(xr) { 145 }, function(xr) {
145 var x = xr.responseXML; 146 var x = xr.responseXML;
146 var xp = x.evaluate( 147 var xp = x.evaluate(