From 4e30b4055d997cf454145ceb26212ac9f4d60afd Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 18 Nov 2014 19:22:14 +0100 Subject: Aktualisierung der Bibliotheken --- www/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/js/index.js') diff --git a/www/js/index.js b/www/js/index.js index 978a639..a6dc18e 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -141,7 +141,7 @@ $('#mainpage').on('pagebeforeshow', function(){ $('.version').text(version); /* Sprache setzen */ - moment.lang('de'); + moment.locale('de'); /* Nutzungsstatistiken */ _paq.push(['setTrackerUrl', 'https://klimaag.***REMOVED***/piwik/piwik.php']); @@ -264,7 +264,7 @@ function fillForm(){ function addNotification(vdate, msgarr, $div){ var msg = msgarr.join('\n'); var title = 'Vertretungen für ' + vdate.format('dddd'); - var ndate = vdate.subtract('days', 1).add('days', $('#notifydayflip').val()); // Bei Bedarf einen Tag vorher + var ndate = vdate.subtract(1, 'days').add($('#notifydayflip').val(), 'days'); // Bei Bedarf einen Tag vorher if(moment().isBefore(ndate)){ window.plugin.notification.local.add({ -- cgit v1.3.1