Commit 8329ee98 authored by Guus der Kinderen's avatar Guus der Kinderen Committed by daryl herzmann

OF-1464: Fix plugin updates via admin console. (#1021)

parent 35c274d5
...@@ -300,14 +300,14 @@ tr.lowerhalf > td:last-child { ...@@ -300,14 +300,14 @@ tr.lowerhalf > td:last-child {
function download(url, hashCode) { function download(url, hashCode) {
document.getElementById(hashCode + "-row").style.display = 'none'; document.getElementById(hashCode + "-row").style.display = 'none';
document.getElementById(hashCode + "-update").style.display = ''; document.getElementById(hashCode + "-update").style.display = '';
downloader.downloadPlugin(downloadComplete, url); downloader.installPlugin(url, hashCode, downloadComplete);
} }
function downloadComplete(update) { function downloadComplete(status) {
document.getElementById(update.hashCode + "-row").style.display = 'none'; document.getElementById(status.hashCode + "-row").style.display = 'none';
document.getElementById(update.hashCode + "-update").style.display = ''; document.getElementById(status.hashCode + "-update").style.display = '';
document.getElementById(update.hashCode + "-image").innerHTML = '<img src="images/success-16x16.gif" border="0" alt=""/>'; document.getElementById(status.hashCode + "-image").innerHTML = '<img src="images/success-16x16.gif" border="0" alt=""/>';
document.getElementById(update.hashCode + "-text").innerHTML = '<fmt:message key="plugin.admin.update.complete" />'; document.getElementById(status.hashCode + "-text").innerHTML = '<fmt:message key="plugin.admin.update.complete" />';
} }
</script> </script>
</head> </head>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment