mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 16:06:15 +00:00
32 lines
807 B
JavaScript
32 lines
807 B
JavaScript
/**
|
|
* 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 () {
|
|
$('#push').click(function () {
|
|
var url = OC.generateUrl('/apps/ocsms/push');
|
|
var data = {
|
|
smsCount: 2,
|
|
smsDatas: [
|
|
{"read": true, "date": 1410524385, "seen": false, "draft": false, "address": "+33612121212", "body": "testSMS", "id": 10},
|
|
{"read": false, "date": 1400524385, "seen": true, "draft": true, "address": "+33614121212", "body": "test SMS 2", "id": 14},
|
|
]
|
|
};
|
|
|
|
$.post(url, data).success(function (response) {
|
|
$('#push-result').text(response);
|
|
});
|
|
|
|
});
|
|
});
|
|
|
|
})(jQuery, OC);
|