Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-07-08 19:03:10 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2016-07-08 19:03:10 +0300
commitaba3fce73e6b54850d8cfbbfaf1c7116c232c6f0 (patch)
tree98efd79f64197fa8c74367046fbbe2de5cb4e340 /js/admin.js
parent13d93c9381e4c1ab18ecc80829e2e706ff3bcf05 (diff)
change app name from popularity contest client to survey client
Diffstat (limited to 'js/admin.js')
-rw-r--r--js/admin.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/js/admin.js b/js/admin.js
index 1bad24b..dbecd8c 100644
--- a/js/admin.js
+++ b/js/admin.js
@@ -1,11 +1,11 @@
$(document).ready(function() {
- var $section = $('#popularitycontestclient');
- $section.find('.popularitycontestclient_category').change(function() {
+ var $section = $('#survey_client');
+ $section.find('.survey_client_category').change(function() {
var $button = $(this);
$button.attr('disabled', true);
OC.AppConfig.postCall('setValue', {
- app: 'popularitycontestclient',
+ app: 'survey_client',
key: $(this).attr('name').substring(24),
value: $(this).attr('checked') ? 'yes' : 'no'
}, function() {
@@ -13,12 +13,12 @@ $(document).ready(function() {
});
});
- $section.find('#popularitycontestclient_monthly_report').change(function() {
+ $section.find('#survey_client_monthly_report').change(function() {
var $button = $(this);
$button.attr('disabled', true);
$.ajax({
- url: OC.linkToOCS('apps/popularitycontestclient/api/v1/', 2) + 'monthly?format=json',
+ url: OC.linkToOCS('apps/survey_client/api/v1/', 2) + 'monthly?format=json',
type: $(this).attr('checked') ? 'POST' : 'DELETE',
success: function() {
$button.attr('disabled', false);
@@ -30,19 +30,19 @@ $(document).ready(function() {
var $button = $(this);
$button.attr('disabled', true);
$.ajax({
- url: OC.linkToOCS('apps/popularitycontestclient/api/v1/', 2) + 'report?format=json',
+ url: OC.linkToOCS('apps/survey_client/api/v1/', 2) + 'report?format=json',
type: 'POST',
success: function(response) {
$button.attr('disabled', false);
$section.find('.last_report').text(JSON.stringify(response.ocs.data, undefined, 4));
- $section.find('.last_sent').text(t('popularitycontestclient', 'Sent on: {on}', {
+ $section.find('.last_sent').text(t('survey_client', 'Sent on: {on}', {
on: moment().format('LL')
}));
},
error: function(xhr) {
$button.attr('disabled', false);
- OC.Notification.showTemporary(t('popularitycontestclient', 'An error occurred while sending your report.'));
+ OC.Notification.showTemporary(t('survey_client', 'An error occurred while sending your report.'));
var response = xhr.responseJSON;
$section.find('.last_report').text(JSON.stringify(response.ocs.data, undefined, 4));