Update# advices on publishing app
This commit is contained in:
parent
00833216ae
commit
e271ac1c0c
|
|
@ -5,8 +5,8 @@
|
||||||
<description>User registration</description>
|
<description>User registration</description>
|
||||||
<licence>AGPL</licence>
|
<licence>AGPL</licence>
|
||||||
<author>Pellaeon Lin</author>
|
<author>Pellaeon Lin</author>
|
||||||
<version>0.1.1</version>
|
<version>0.1.2</version>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<owncloud min-version="8.1" max-version="10.0"/>
|
<owncloud min-version="8.1" max-version="8.2"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</info>
|
</info>
|
||||||
|
|
|
||||||
31
js/script.js
31
js/script.js
|
|
@ -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);
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
echo $l->t("To create a new account on %s, just click the following link:", [$_['sitename']]);
|
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'];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue