summaryrefslogtreecommitdiffabout
path: root/content/fireflix.js
Side-by-side diff
Diffstat (limited to 'content/fireflix.js') (more/less context) (ignore whitespace changes)
-rw-r--r--content/fireflix.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/content/fireflix.js b/content/fireflix.js
index 98b6d41..337354e 100644
--- a/content/fireflix.js
+++ b/content/fireflix.js
@@ -96,2 +96,3 @@ var fireflix = {
this.fireflix = f;
+ pull_elements(this,document,[ 'set_photo' ]);
},
@@ -150,7 +151,7 @@ var fireflix = {
var p = this.photos[this.selection.currentIndex];
- document.getElementById('set_photo').src =
+ this.set_photo.src =
this.fireflix.flickr.get_photo_url(p.server,p.id,p.secret,'t');
- document.getElementById('set_photo').hidden = false;
+ this.set_photo.hidden = false;
}else{
- document.getElementById('set_photo').hidden = true;
+ this.set_photo.hidden = true;
}
@@ -312,3 +313,4 @@ var fireflix = {
'upload_filename','upload_title','upload_file_preview',
- 'upload_file_props','upload_progress','upload_tags'
+ 'upload_file_props','upload_progress','upload_tags',
+ 'cmd_uploads_upload'
]);
@@ -403,3 +405,3 @@ var fireflix = {
on_file_upload: function(f) {
- document.getElementById('cmd_uploads_upload').setAttribute('disabled','true');
+ this.cmd_uploads_upload.setAttribute('disabled','true');
for(var fi in this.files) {
@@ -450,3 +452,3 @@ var fireflix = {
this.selection.clearSelection();
- document.getElementById('cmd_uploads_upload').setAttribute('disabled','false');
+ this.cmd_uploads_upload.setAttribute('disabled','false');
this.upload_progress.setAttribute('hidden','true');