Revision 1016f160 src/gr/ebs/gss/client/FileMenu.java
b/src/gr/ebs/gss/client/FileMenu.java | ||
---|---|---|
137 | 137 |
void createDownloadLink(String[] link, boolean forceDownload) { |
138 | 138 |
String downloadURL = getDownloadURL(); |
139 | 139 |
if (!downloadURL.isEmpty()) { |
140 |
link[0] = "<a class='hidden-link' href='" + downloadURL |
|
140 |
link[0] = "<a id ='topMenu.file.download' class='hidden-link' href='" + downloadURL
|
|
141 | 141 |
+ (forceDownload ? "&dl=1" : "") + "' target='_blank'>"; |
142 | 142 |
link[1] = "</a>"; |
143 | 143 |
} |
... | ... | |
189 | 189 |
contextMenu.addItem(newFolderItem); |
190 | 190 |
} |
191 | 191 |
if(uploadVisible){ |
192 |
MenuItem uploadItem = new MenuItem("<span>" + AbstractImagePrototype.create(images.fileUpdate()).getHTML() + " Upload</span>", true, new UploadFileCommand(this)); |
|
193 |
uploadItem.getElement().setId("topMenu.file.upload"); |
|
192 |
MenuItem uploadItem = new MenuItem("<span id='topMenu.file.upload'>" + AbstractImagePrototype.create(images.fileUpdate()).getHTML() + " Upload</span>", true, new UploadFileCommand(this)); |
|
194 | 193 |
contextMenu.addItem(uploadItem); |
195 | 194 |
} |
196 | 195 |
if (downloadVisible) { |
... | ... | |
199 | 198 |
|
200 | 199 |
MenuItem downloadItem = new MenuItem("<span>" + link[0] + AbstractImagePrototype.create(images.download()).getHTML() + " Download" + link[1] + "</span>", true, downloadCmd); |
201 | 200 |
contextMenu.addItem(downloadItem); |
202 |
downloadItem.getElement().setId("topMenu.file.download"); |
|
203 | 201 |
|
204 | 202 |
createDownloadLink(link, true); |
205 | 203 |
|
206 |
MenuItem saveAsItem = new MenuItem("<span>" + link[0] + AbstractImagePrototype.create(images.download()).getHTML() + " Save As" + link[1] + "</span>", true, downloadCmd); |
|
207 |
saveAsItem.getElement().setId("topMenu.file.saveAs"); |
|
204 |
MenuItem saveAsItem = new MenuItem("<span>" + link[0] + AbstractImagePrototype.create(images.download()).getHTML() + " Save As" + link[1] + "</span>", true, downloadCmd); |
|
208 | 205 |
contextMenu.addItem(saveAsItem); |
209 | 206 |
} |
210 | 207 |
MenuItem emptyTrashItem = new MenuItem("<span>" + AbstractImagePrototype.create(images.emptyTrash()).getHTML() + " Empty Trash</span>", true, new EmptyTrashCommand(this)); |
Also available in: Unified diff