Revision ebead1b5 src/gr/grnet/pithos/web/client/VersionsList.java
b/src/gr/grnet/pithos/web/client/VersionsList.java | ||
---|---|---|
102 | 102 |
HTML restoreVersion = new HTML("<a href='#' class='hidden-link info'><span>" + AbstractImagePrototype.create(images.restore()).getHTML() + "</span><div>Restore this Version</div></a>"); |
103 | 103 |
restoreVersion.addClickHandler(new ClickHandler() { |
104 | 104 |
@Override |
105 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
105 |
public void onClick(ClickEvent event) { |
|
106 | 106 |
restoreVersion(v.getVersion()); |
107 | 107 |
} |
108 | 108 |
}); |
... | ... | |
115 | 115 |
HTML downloadHtml = new HTML("<a class='hidden-link info' href='#'><span>" + AbstractImagePrototype.create(images.download()).getHTML()+"</span><div>View this Version</div></a>"); |
116 | 116 |
downloadHtml.addClickHandler(new ClickHandler() { |
117 | 117 |
@Override |
118 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
118 |
public void onClick(ClickEvent event) { |
|
119 | 119 |
String fileUrl = app.getApiPath() + file.getOwner() + file.getUri() + "?X-Auth-Token=" + app.getToken() + "&version=" + v.getVersion(); |
120 | 120 |
Window.open(fileUrl, "_BLANK", ""); |
121 | 121 |
} |
... | ... | |
135 | 135 |
PostRequest restoreVersion = new PostRequest(app.getApiPath(), file.getOwner(), path) { |
136 | 136 |
|
137 | 137 |
@Override |
138 |
public void onSuccess(@SuppressWarnings("unused") Resource result) {
|
|
138 |
public void onSuccess(Resource result) { |
|
139 | 139 |
container.hide(); |
140 | 140 |
} |
141 | 141 |
|
Also available in: Unified diff