summaryrefslogtreecommitdiffstats
path: root/apps/calendar/js
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-06-11 22:16:26 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-06-11 22:16:26 +0200
commit3c9be43aa45d0d25b070289607bb78e38d7bc35c (patch)
tree1d5d81f78b21c60bc02a74d023b54e255a77c57e /apps/calendar/js
parent08a3a4f1859851496d7cd975d7bc2b3256a998b1 (diff)
downloadnextcloud-server-3c9be43aa45d0d25b070289607bb78e38d7bc35c.tar.gz
nextcloud-server-3c9be43aa45d0d25b070289607bb78e38d7bc35c.zip
add some information about repeating events caching on personal settings page
Diffstat (limited to 'apps/calendar/js')
-rw-r--r--apps/calendar/js/settings.js19
1 files changed, 18 insertions, 1 deletions
diff --git a/apps/calendar/js/settings.js b/apps/calendar/js/settings.js
index f42e024d083..eafd503c994 100644
--- a/apps/calendar/js/settings.js
+++ b/apps/calendar/js/settings.js
@@ -45,6 +45,23 @@ $(document).ready(function(){
$('#firstday').chosen();
});
$('#cleancalendarcache').click(function(){
- $.getJSON(OC.filePath('calendar', 'ajax/cache', 'rescan.php'));
+ $.getJSON(OC.filePath('calendar', 'ajax/cache', 'rescan.php'), function(){
+ calendarcachecheck();
+ });
});
+ calendarcachecheck();
});
+function calendarcachecheck(){
+ $.getJSON(OC.filePath('calendar', 'ajax/cache', 'status.php'), function(jsondata, status) {
+ $('#cleancalendarcache').attr('title', jsondata.l10n);
+ if(jsondata.status == 'success'){
+ $('#cleancalendarcache').css('background', '#90EE90');
+ $('#cleancalendarcache').css('color', '#333');
+ $('#cleancalendarcache').css('text-shadow', '#fff 0 1px 0');
+ }else{
+ $('#cleancalendarcache').css('background', '#DC143C');
+ $('#cleancalendarcache').css('color', '#FFFFFF');
+ $('#cleancalendarcache').css('text-shadow', '0px 0px 0px #fff, 0px 0px #fff');
+ }
+ });
+} \ No newline at end of file