diff --git a/OxFF/chrome/content/options.js b/OxFF/chrome/content/options.js index 69d1c6c..4f0a13f 100644 --- a/OxFF/chrome/content/options.js +++ b/OxFF/chrome/content/options.js @@ -1,7 +1,7 @@ // -*- coding: utf-8 -*- // vi:si:et:sw=2:sts=4:ts=2 -Components.utils.import("resource://ox/utils.jsm"); +Components.utils.import("resource://ox/oxff.jsm"); function Site(site, access) { this.site = site; @@ -11,13 +11,13 @@ function Site(site, access) { Site.prototype = { delete: function() { - var conn = ox.getDB(); + var conn = oxff.getDB(); var q = conn.createStatement("DELETE FROM site WHERE site = :site"); q.params.site = this.site; q.executeStep(); }, toggle: function() { - var conn = ox.getDB(); + var conn = oxff.getDB(); if(this.access==1) this.access=0; else this.access = 1; var q = conn.createStatement("UPDATE site SET access = :access WHERE site = :site"); @@ -60,7 +60,7 @@ var OxFFManager = { this._sites = []; // load permissions into a table - var conn = ox.getDB(); + var conn = oxff.getDB(); var q = conn.createStatement("SELECT site, access FROM site"); while(q.executeStep()) { var p = new Site(q.row.site, q.row.access); diff --git a/OxFF/install.rdf b/OxFF/install.rdf index e86e87a..e6a87be 100644 --- a/OxFF/install.rdf +++ b/OxFF/install.rdf @@ -15,6 +15,14 @@ + + + firefogg@firefogg.org + 1.2.10 + 1.2.* + + + pan.do/ra Firefox extension integrate local files with pan.do/ra databases diff --git a/test/import.html b/test/import.html index 383e391..b5eb811 100644 --- a/test/import.html +++ b/test/import.html @@ -209,13 +209,13 @@ function update() { var $folder = $('#'+folderId); if($folder.length==0) { $folder = $('
').attr('id', folderId).html('

'+folder+'

'); - $folder.find('h3').click(function() { $(this).parent().find('div').toggle();}); + $folder.find('h3').click(function() { $(this).parent().find('.file').toggle();}); $volume.append($folder); } var fileId = file.oshash; var $file = $('#'+fileId); if($file.length==0) { - $file = $('
').attr('id', fileId).html(file.path).hide(); + $file = $('
').attr('id', fileId).addClass('file').html(file.path).hide(); $folder.append($file); } });