Преглед на файлове

Move theme name mangling to where it is actually desired (#9891)

Change-Id: Ia78d38c36e7f5f9c86e645f4afd2014cdc88cb32
tags/7.0.0.beta6
Leif Åstrand преди 11 години
родител
ревизия
8a775666ae
променени са 2 файла, в които са добавени 6 реда и са изтрити 5 реда
  1. 1
    3
      client/src/com/vaadin/client/ApplicationConfiguration.java
  2. 5
    2
      client/src/com/vaadin/client/ui/ui/UIConnector.java

+ 1
- 3
client/src/com/vaadin/client/ApplicationConfiguration.java Целия файл

@@ -254,9 +254,7 @@ public class ApplicationConfiguration implements EntryPoint {
}

public String getThemeName() {
String themeName = getJsoConfiguration(id).getConfigString("theme");
themeName = themeName.replaceAll("[^a-zA-Z0-9]", "");
return themeName;
return getJsoConfiguration(id).getConfigString("theme");
}

public String getThemeUri() {

+ 5
- 2
client/src/com/vaadin/client/ui/ui/UIConnector.java Целия файл

@@ -300,8 +300,11 @@ public class UIConnector extends AbstractComponentContainerConnector implements
// the user
root.getElement().setInnerHTML("");

root.addStyleName("v-theme-"
+ applicationConnection.getConfiguration().getThemeName());
String themeName = applicationConnection.getConfiguration()
.getThemeName();
// Remove chars that are not suitable for style names
themeName = themeName.replaceAll("[^a-zA-Z0-9]", "");
root.addStyleName("v-theme-" + themeName);

root.add(getWidget());


Loading…
Отказ
Запис