diff options
Diffstat (limited to 'bandwagon/content/scripts/model/collection.js')
-rw-r--r-- | bandwagon/content/scripts/model/collection.js | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/bandwagon/content/scripts/model/collection.js b/bandwagon/content/scripts/model/collection.js index c156198..27a20e7 100644 --- a/bandwagon/content/scripts/model/collection.js +++ b/bandwagon/content/scripts/model/collection.js @@ -59,11 +59,7 @@ Bandwagon.Model.Collection = function() this.showNotifications = -1; // default is to use global setting this.addonsPerPage = -1; // default is to use global setting - this.autoPublishExtensions = true; - this.autoPublishThemes = true; - this.autoPublishDicts = true; - this.autoPublishLangPacks = true; - this.autoPublishDisabled = false; + //this.preview = false; this.status = this.STATUS_NEW; this.type = this.TYPE_NORMAL; @@ -175,7 +171,7 @@ Bandwagon.Model.Collection.prototype.isLocalAutoPublisher = function() if (this.name == "") return false; - return (this.Bandwagon.Preferences.getPreference("local.autopublisher") == this.resourceURL); + return (this.Bandwagon.Preferences.getPreference("local.autopublisher") == this.name); } Bandwagon.Model.Collection.prototype.toString = function() @@ -193,7 +189,8 @@ Bandwagon.Model.Collection.prototype.equals = function(other) Bandwagon.Model.Collection.prototype.unserialize = function(xcollection) { - var baseURL = xcollection.@xmlbase.toString(); + var xmlns = new Namespace('http://www.w3.org/XML/1998/namespace'); + var baseURL = xcollection.@xmlns::base.toString(); //this.resourceURL = baseURL + "/" + xcollection.attribute("href").toString(); @@ -226,23 +223,10 @@ Bandwagon.Model.Collection.prototype.unserialize = function(xcollection) { this.addons[addon.guid] = addon; } - - this.addons[addon.guid].seen = true; - } - } - - for (var id in this.addons) - { - if (this.addons[id].seen != true) - { - delete this.addons[id]; - continue; } - - this.addons[id].seen = false; } - var linkBaseURL = xcollection.links.@xmlbase.toString(); + var linkBaseURL = xcollection.links.@xmlns::base.toString(); for each (var xlink in xcollection.links.link) { |