aboutsummaryrefslogtreecommitdiffstats
path: root/apps/journal/js/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/journal/js/settings.js')
-rw-r--r--apps/journal/js/settings.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/apps/journal/js/settings.js b/apps/journal/js/settings.js
deleted file mode 100644
index 8cd1b25f6e7..00000000000
--- a/apps/journal/js/settings.js
+++ /dev/null
@@ -1,15 +0,0 @@
-$(document).ready(function(){
- $('#journal_calendar').on('change', function(event){
- $.post(OC.filePath('journal', 'ajax', 'setdefaultcalendar.php'), {'id':$('#journal_calendar option:selected').val()}, function(jsondata) {
- var success = {padding: 0.5em, background-color:green, color: white, font-weight: bold, float: left};
- var failure = {padding: 0.5em, background-color:red, color: white, font-weight: bold, float: left};
- if(jsondata.status == 'success') {
- $('#journal_status');
- $('#journal_status').css(success).html(t('journal', 'Saved')).fadeIn().fadeOut(5000);
- } else {
- $('#journal_status').css(failure);
- $('#journal_status').html(t('journal', 'Error saving: ')+jsondata.data.message).fadeIn().fadeOut(5000);
- }
- });
- });
-});