mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-22 05:43:07 +00:00
First Commit. Datascheme is in tests
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* ownCloud - ocsms
|
||||
*
|
||||
* This file is licensed under the Affero General Public License version 3 or
|
||||
* later. See the COPYING file.
|
||||
*
|
||||
* @author Loic Blot <loic.blot@unix-experience.fr>
|
||||
* @copyright Loic Blot 2014
|
||||
*/
|
||||
|
||||
(function ($, OC) {
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#hello').click(function () {
|
||||
alert('Hello from your script file');
|
||||
});
|
||||
|
||||
$('#echo').click(function () {
|
||||
var url = OC.generateUrl('/apps/ocsms/echo');
|
||||
var data = {
|
||||
echo: $('#echo-content').val()
|
||||
};
|
||||
|
||||
$.post(url, data).success(function (response) {
|
||||
$('#echo-result').text(response.echo);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery, OC);
|
||||
Reference in New Issue
Block a user