Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bandwagon/content/ui/publishController.js
diff options
context:
space:
mode:
Diffstat (limited to 'bandwagon/content/ui/publishController.js')
-rw-r--r--bandwagon/content/ui/publishController.js39
1 files changed, 4 insertions, 35 deletions
diff --git a/bandwagon/content/ui/publishController.js b/bandwagon/content/ui/publishController.js
index f8c805e..1ff0d27 100644
--- a/bandwagon/content/ui/publishController.js
+++ b/bandwagon/content/ui/publishController.js
@@ -67,16 +67,6 @@ Bandwagon.Controller.Publish.init = function()
//document.getElementById("dialog-desc").value = Bandwagon.Controller.Publish.stringBundle.getFormattedString("you.are.sharing.the.add.on", [Bandwagon.Controller.Publish.publishExtension.name]);
document.getElementById("type-deck").selectedIndex = Bandwagon.Controller.Publish.publishType-1;
- // l10n fallback (bug 493654)
- try
- {
- document.getElementById("personal-publish-note-label").textContent = Bandwagon.Controller.Publish.stringBundle.getString("enter.a.personal.publish.note.label");
- }
- catch (e)
- {
- document.getElementById("personal-publish-note-label").textContent = document.getElementById("personal-email-note-label").textContent;
- }
-
switch (Bandwagon.Controller.Publish.publishType)
{
case Bandwagon.Controller.Publish.TYPE_COLLECTION:
@@ -85,8 +75,6 @@ Bandwagon.Controller.Publish.init = function()
document.getElementById("sharing-with-box").collapsed = true;
document.getElementById("publishing-to-box").collapsed = false;
document.getElementById("sharing-with-new").collapsed = true;
- document.getElementById("personal-email-note-label").collapsed = true;
- document.getElementById("personal-publish-note-label").collapsed = false;
break;
case Bandwagon.Controller.Publish.TYPE_EXISTING_EMAIL:
document.getElementById("sharing-with").textContent = Bandwagon.Controller.Publish.stringBundle.getFormattedString("sharing.with", [Bandwagon.Controller.Publish.publishDestination, Bandwagon.Controller.Publish.publishExtension.name]);
@@ -195,26 +183,7 @@ Bandwagon.Controller.Publish.finished = function(event)
Bandwagon.Controller.Publish.hasSubmitted = false;
Bandwagon.Controller.Publish.invalidate();
- if (event.getError().getMessage() == "unknown_addon_guid")
- {
- Bandwagon.Controller.Publish._showError(Bandwagon.Controller.Publish.stringBundle.getString("error.unknown_addon_guid"));
- }
- else if (event.getError().getMessage() == "invalid_parameters")
- {
- // L10n fallback (bug 493656)
- try
- {
- Bandwagon.Controller.Publish._showError(Bandwagon.Controller.Publish.stringBundle.getString("error.invalid_parameters"));
- }
- catch (e)
- {
- Bandwagon.Controller.Publish._showError(event.getError());
- }
- }
- else
- {
- Bandwagon.Controller.Publish._showError(event.getError());
- }
+ Bandwagon.Controller.Publish._showError(event.getError());
return;
}
@@ -231,11 +200,11 @@ Bandwagon.Controller.Publish.finished = function(event)
{
bandwagonService.forceCheckForUpdates(Bandwagon.Controller.Publish.publishDestination);
- document.getElementById("error").textContent = Bandwagon.Controller.Publish.stringBundle.getString("the.addon.has.been.published");
+ document.getElementById("error").value = Bandwagon.Controller.Publish.stringBundle.getString("the.addon.has.been.published");
}
else
{
- document.getElementById("error").textContent = Bandwagon.Controller.Publish.stringBundle.getString("the.email.has.been.sent");
+ document.getElementById("error").value = Bandwagon.Controller.Publish.stringBundle.getString("the.email.has.been.sent");
}
document.getElementById("error").style.visibility = "visible";
@@ -254,7 +223,7 @@ Bandwagon.Controller.Publish.finished = function(event)
Bandwagon.Controller.Publish._showError = function(message)
{
document.getElementById("error").style.visibility = "visible";
- document.getElementById("error").textContent = message;
+ document.getElementById("error").value = message;
}
window.addEventListener("load", Bandwagon.Controller.Publish.init, true);