From 6a8e2f314e17a30e6f332bd7a781d143bbc761af Mon Sep 17 00:00:00 2001 From: kaetemi Date: Tue, 2 Sep 2014 19:01:15 +0200 Subject: [PATCH] Move misleading copyright notices to a more appropriate location --- .../public_php/ams/{ => templates}/README.md | 0 code/web/public_php/ams/templates/layout.tpl | 27 +++++++++---------- .../ams/{ => templates}/license.txt | 0 3 files changed, 13 insertions(+), 14 deletions(-) rename code/web/public_php/ams/{ => templates}/README.md (100%) rename code/web/public_php/ams/{ => templates}/license.txt (100%) diff --git a/code/web/public_php/ams/README.md b/code/web/public_php/ams/templates/README.md similarity index 100% rename from code/web/public_php/ams/README.md rename to code/web/public_php/ams/templates/README.md diff --git a/code/web/public_php/ams/templates/layout.tpl b/code/web/public_php/ams/templates/layout.tpl index 69b99dbac..9665cfee3 100644 --- a/code/web/public_php/ams/templates/layout.tpl +++ b/code/web/public_php/ams/templates/layout.tpl @@ -137,9 +137,9 @@
{/if} - + {if isset($no_visible_elements) and $no_visible_elements eq "TRUE"} - +
@@ -148,8 +148,8 @@ {/if} {block name=content}{/block} - - + + {if ! isset($no_visible_elements) or $no_visible_elements eq "FALSE"}
{/if} @@ -172,7 +172,6 @@
{/if} @@ -198,38 +197,38 @@ { return document.getElementById(e1); } - + function uploadPlugin() { var fileObject = _("file").files[0]; var formdata = new FormData(); formdata.append("file",fileObject); var ajax = new XMLHttpRequest(); - ajax.upload.addEventListener("progress", progressHandler, false); + ajax.upload.addEventListener("progress", progressHandler, false); ajax.addEventListener("load", completeHandler, false); ajax.addEventListener("error", errorHandler, false); ajax.addEventListener("abort", abortHandler, false); ajax.open("POST", "index.php?page=plugin&action=install_plugin"); ajax.send(formdata); } - + function progressHandler(event) { var percent = (event.loaded/event.total)*100; _("progressBar").value = Math.round(percent); - } - + } + function completeHandler(event) { _("status").innerHTML = event.target.responseText; _("progressBar").value = 0; } - + function errorHandler(event) { _("status").innerHTML = "upload Failed"; } - + function abortHandler(event) { _("status").innerHTML = "upload Aborted"; @@ -238,13 +237,13 @@ - + - + diff --git a/code/web/public_php/ams/license.txt b/code/web/public_php/ams/templates/license.txt similarity index 100% rename from code/web/public_php/ams/license.txt rename to code/web/public_php/ams/templates/license.txt