Commit 40213e9c authored by cbiesinger%web.de's avatar cbiesinger%web.de
Browse files

bug 180364, don't show the theme name in the "Uninstall Theme" button, to make...

bug 180364, don't show the theme name in the "Uninstall Theme" button, to make this button fit even if the theme has a long name
r=neil sr=roc a=chofmann
parent f310ff43
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -182,7 +182,6 @@ function themeSelect()
    var descText = document.createTextNode(selectedItem.getAttribute("description"));
    var description = document.getElementById("description");
    var uninstallButton = document.getElementById("uninstallSkin");
    var uninstallLabel = prefbundle.getString("uninstallThemePrefix");

    while (description.hasChildNodes())
      description.removeChild(description.firstChild);
@@ -204,16 +203,10 @@ function themeSelect()

      var locType = selectedItem.getAttribute("loctype");
      uninstallButton.disabled = (selectedSkin == skinName) || (locType == "install");
      
      uninstallLabel = uninstallLabel.replace(/%theme_name%/, themeName);
      uninstallButton.label = uninstallLabel;
    }
    else {
      var brandbundle = document.getElementById("bundle_brand");

      uninstallLabel = uninstallLabel.replace(/%theme_name%/, themeName);
      uninstallButton.label = uninstallLabel;

      uninstallButton.disabled = selectedSkin == skinName;

      var newText = prefbundle.getString("oldTheme");
+0 −5
Original line number Diff line number Diff line
@@ -4,11 +4,6 @@ choosefile=Choose a file
viewrow=View...
hiderow=Hide

# Themes preferences panel inserts the name of the selected
# theme into the %theme_name% segment
applyThemePrefix=Apply %theme_name% 
uninstallThemePrefix=Uninstall %theme_name% 

oldTheme=You have selected a theme which was designed for an earlier version of %brand% and is incompatible with your current %brand% version. Please check %brand% theme sites for an updated version of the theme. You can uninstall this theme by clicking \"Uninstall %theme_name%\" button.

languageAlert=Please restart %brand% to use the new preferred language or region setting.