Update# advices on publishing app

This commit is contained in:
Pellaeon Lin 2016-02-19 14:30:00 +08:00
parent 00833216ae
commit e271ac1c0c
3 changed files with 3 additions and 34 deletions

View File

@ -5,8 +5,8 @@
<description>User registration</description>
<licence>AGPL</licence>
<author>Pellaeon Lin</author>
<version>0.1.1</version>
<version>0.1.2</version>
<dependencies>
<owncloud min-version="8.1" max-version="10.0"/>
<owncloud min-version="8.1" max-version="8.2"/>
</dependencies>
</info>

View File

@ -1,31 +0,0 @@
/**
* ownCloud - registration
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Pellaeon Lin <pellaeon@hs.ntnu.edu.tw>
* @copyright Pellaeon Lin 2014
*/
(function ($, OC) {
$(document).ready(function () {
$('#hello').click(function () {
alert('Hello from your script file');
});
$('#echo').click(function () {
var url = OC.generateUrl('/apps/registration/echo');
var data = {
echo: $('#echo-content').val()
};
$.post(url, data).success(function (response) {
$('#echo-result').text(response.echo);
});
});
});
})(jQuery, OC);

View File

@ -1,3 +1,3 @@
<?php
echo $l->t("To create a new account on %s, just click the following link:", [$_['sitename']]);
echo str_replace('{link}', $_['link'], "\n\n{link}");
echo "\n\n".$_['link'];