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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.js4
-rw-r--r--apps/settings/js/settings/personalInfo.js10
2 files changed, 7 insertions, 7 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index b86372955e4..be6da20033a 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -6,7 +6,9 @@ module.exports = {
$: true,
moment: true,
escapeHTML: true,
- oc_userconfig: true
+ oc_userconfig: true,
+ dayNames: true,
+ firstDay: true
},
extends: ['nextcloud']
}
diff --git a/apps/settings/js/settings/personalInfo.js b/apps/settings/js/settings/personalInfo.js
index 454374b303d..9a683b30c00 100644
--- a/apps/settings/js/settings/personalInfo.js
+++ b/apps/settings/js/settings/personalInfo.js
@@ -369,11 +369,9 @@ $(document).ready(function () {
});
window.setInterval(function() {
- $('#localeexample-time').text(moment().format('LTS'));
- $('#localeexample-date').text(moment().format('L'));
- $('#localeexample-fdow').text(t('settings', 'Week starts on {fdow}',
- {fdow: moment().weekday(0).format('dddd')}));
-
-}, 1000);
+ $('#localeexample-time').text(moment().format('LTS'))
+ $('#localeexample-date').text(moment().format('L'))
+ $('#localeexample-fdow').text(t('settings', 'Week starts on {fdow}', { fdow: dayNames[firstDay] }))
+}, 1000)
OC.Settings.updateAvatar = updateAvatar;