Changes to logo uploading and deleting
This commit is contained in:
parent
4cef4f2cc8
commit
4921df1ba9
1 changed files with 2 additions and 2 deletions
|
|
@ -1577,7 +1577,7 @@ public class ConfigurationController extends GenericForwardComposer {
|
||||||
.getCurrentWebApplicationContext()
|
.getCurrentWebApplicationContext()
|
||||||
.getResource("/")
|
.getResource("/")
|
||||||
.getFile()
|
.getFile()
|
||||||
.getPath() + "\\" + media.getName());
|
.getPath() + "/" + media.getName());
|
||||||
|
|
||||||
OutputStream outputStream = new FileOutputStream(fileToSave);
|
OutputStream outputStream = new FileOutputStream(fileToSave);
|
||||||
out = new BufferedOutputStream(outputStream);
|
out = new BufferedOutputStream(outputStream);
|
||||||
|
|
@ -1628,9 +1628,9 @@ public class ConfigurationController extends GenericForwardComposer {
|
||||||
if ( !"".equals(companyLogoURL.getValue()) ) {
|
if ( !"".equals(companyLogoURL.getValue()) ) {
|
||||||
((org.zkoss.zul.Image) configurationWindow.getFellow(LOGO_PREVIEW_COMPONENT)).setSrc("");
|
((org.zkoss.zul.Image) configurationWindow.getFellow(LOGO_PREVIEW_COMPONENT)).setSrc("");
|
||||||
findAndRemoveLogoFromTarget(companyLogoURL.getValue());
|
findAndRemoveLogoFromTarget(companyLogoURL.getValue());
|
||||||
Util.logo = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Util.logo = null;
|
||||||
companyLogoURL.setValue("");
|
companyLogoURL.setValue("");
|
||||||
configurationModel.setCompanyLogoURL("");
|
configurationModel.setCompanyLogoURL("");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue