Skip to content
Snippets Groups Projects
Commit ef519c6f authored by User expired's avatar User expired
Browse files

openolat#99: do explicitly set the picture and video elements to visible as...

openolat#99: do explicitly set the picture and video elements to visible as the delete button can't be seen by default
parent 33ed9951
No related branches found
No related tags found
No related merge requests found
...@@ -179,13 +179,13 @@ public class RepositoryEntryInfoController extends FormBasicController { ...@@ -179,13 +179,13 @@ public class RepositoryEntryInfoController extends FormBasicController {
fileUpload.setPreview(usess, true); fileUpload.setPreview(usess, true);
fileUpload.addActionListener(FormEvent.ONCHANGE); fileUpload.addActionListener(FormEvent.ONCHANGE);
//UIBK: Picture fileUpload should always be possible here also for managed courses //UIBK: Picture fileUpload should always be possible here also for managed courses
//fileUpload.setDeleteEnabled(!managed); fileUpload.setDeleteEnabled(true);
if(img instanceof LocalFileImpl) { if(img instanceof LocalFileImpl) {
fileUpload.setPreview(usess, true); fileUpload.setPreview(usess, true);
fileUpload.setInitialFile(((LocalFileImpl)img).getBasefile()); fileUpload.setInitialFile(((LocalFileImpl)img).getBasefile());
} }
//UIBK: Picture fileUpload should always be possible here also for managed courses //UIBK: Picture fileUpload should always be possible here also for managed courses
//fileUpload.setVisible(!managed); fileUpload.setVisible(true);
fileUpload.limitToMimeType(imageMimeTypes, "cif.error.mimetype", new String[]{ imageMimeTypes.toString()} ); fileUpload.limitToMimeType(imageMimeTypes, "cif.error.mimetype", new String[]{ imageMimeTypes.toString()} );
VFSLeaf movie = repositoryService.getIntroductionMovie(repositoryEntry); VFSLeaf movie = repositoryService.getIntroductionMovie(repositoryEntry);
...@@ -195,13 +195,13 @@ public class RepositoryEntryInfoController extends FormBasicController { ...@@ -195,13 +195,13 @@ public class RepositoryEntryInfoController extends FormBasicController {
movieUpload.setPreview(usess, true); movieUpload.setPreview(usess, true);
movieUpload.addActionListener(FormEvent.ONCHANGE); movieUpload.addActionListener(FormEvent.ONCHANGE);
//UIBK: movieUpload should always be possible here also for managed courses //UIBK: movieUpload should always be possible here also for managed courses
//movieUpload.setDeleteEnabled(!managed); movieUpload.setDeleteEnabled(true);
if(movie instanceof LocalFileImpl) { if(movie instanceof LocalFileImpl) {
movieUpload.setPreview(usess, true); movieUpload.setPreview(usess, true);
movieUpload.setInitialFile(((LocalFileImpl)movie).getBasefile()); movieUpload.setInitialFile(((LocalFileImpl)movie).getBasefile());
} }
//UIBK: movieUpload should always be possible here also for managed courses //UIBK: movieUpload should always be possible here also for managed courses
//movieUpload.setVisible(!managed); movieUpload.setVisible(true);
FormLayoutContainer buttonContainer = FormLayoutContainer.createButtonLayout("buttonContainer", getTranslator()); FormLayoutContainer buttonContainer = FormLayoutContainer.createButtonLayout("buttonContainer", getTranslator());
formLayout.add("buttonContainer", buttonContainer); formLayout.add("buttonContainer", buttonContainer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment