From 31fb78eac7c5799be1fb4547f3abab17ed88727f Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Tue, 03 Oct 2006 14:23:31 +0000 Subject: moved setting of .view into corresponding init()s git-svn-id: http://svn.klever.net/kin/fireflix/trunk@182 fe716a7a-6dde-0310-88d9-d003556173a8 --- diff --git a/content/fireflix.js b/content/fireflix.js index 966630c..63a4118 100644 --- a/content/fireflix.js +++ b/content/fireflix.js @@ -27,9 +27,6 @@ var fireflix = { this.flickr.api_shs = '9c33c9e2f0f0cfd5'; this.flickr.prefs_root = 'net.klever.kin.fireflix'; this.flickr.load_token(); - document.getElementById('setslist').view = this.photosets; - document.getElementById('setphotos').view = this.photoset; - document.getElementById('uploadlist').view = this.uploads; this.no_auth_info_label = this.auth_info.value; this.set_auth_state(this.flickr.token,false); if(this.flickr.token) { @@ -97,6 +94,7 @@ var fireflix = { init: function(f) { this.fireflix = f; pull_elements(this,document,[ 'set_photo' ]); + document.getElementById('setphotos').view = this; }, rowCount: 0, getCellText: function(r,c) { @@ -166,6 +164,7 @@ var fireflix = { fireflix: null, init: function(f) { this.fireflix = f; + document.getElementById('setslist').view = this; }, rowCount: 0, getCellText: function(r,c) { @@ -316,6 +315,7 @@ var fireflix = { 'upload_file_props','upload_progress','upload_tags', 'cmd_uploads_upload' ]); + document.getElementById('uploadlist').view = this; }, files: new Array(), rowCount: 0, -- cgit v0.9.0.2