From f7be3c8a162969848a82fa2584b05df43a81a0ba Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sat, 21 Mar 2020 17:48:58 +0000 Subject: [PATCH] [feature] add clock and date separator text default controls --- src/html/menu/content/header/clock.html | 5 +++- src/html/menu/content/header/date.html | 5 +++- src/js/control.js | 34 ++++++++++++++++++++++--- 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/src/html/menu/content/header/clock.html b/src/html/menu/content/header/clock.html index 3710ffe3..0af7003d 100644 --- a/src/html/menu/content/header/clock.html +++ b/src/html/menu/content/header/clock.html @@ -60,7 +60,10 @@

Clock

- +
+ + +

diff --git a/src/html/menu/content/header/date.html b/src/html/menu/content/header/date.html index 60358e80..d2d513e7 100644 --- a/src/html/menu/content/header/date.html +++ b/src/html/menu/content/header/date.html @@ -143,7 +143,10 @@

Date

- +
+ + +

diff --git a/src/js/control.js b/src/js/control.js index 5bda45fa..bcdef1f3 100644 --- a/src/js/control.js +++ b/src/js/control.js @@ -1328,6 +1328,15 @@ var control = (function() { clock.render.clear(); clock.render.all(); } + }, { + element: ".control-header-clock-separator-text-default", + type: "button", + func: function() { + mod.default("header.clock.separator.text"); + clock.render.clear(); + clock.render.all(); + render.update.control.menu(); + } }, { element: ".control-header-clock-hour24-show", path: "header.clock.hour24.show", @@ -1762,6 +1771,19 @@ var control = (function() { transitional.render.clear(); transitional.render.all(); } + }, { + element: ".control-header-date-separator-text-default", + type: "button", + func: function() { + mod.default("header.date.separator.text"); + date.render.clear(); + date.render.all(); + greeting.render.clear(); + greeting.render.all(); + transitional.render.clear(); + transitional.render.all(); + render.update.control.menu(); + } }, { element: ".control-header-date-format-datemonth", path: "header.date.format", @@ -6899,7 +6921,8 @@ var control = (function() { dependents: function() { return [ ".control-header-clock-separator-show", - ".control-header-clock-separator-text" + ".control-header-clock-separator-text", + ".control-header-clock-separator-text-default" ]; } }, { @@ -6915,7 +6938,8 @@ var control = (function() { }, dependents: function() { return [ - ".control-header-clock-separator-text" + ".control-header-clock-separator-text", + ".control-header-clock-separator-text-default" ]; } }, { @@ -7024,7 +7048,8 @@ var control = (function() { dependents: function() { return [ ".control-header-date-separator-show", - ".control-header-date-separator-text" + ".control-header-date-separator-text", + ".control-header-date-separator-text-default" ]; } }, { @@ -7040,7 +7065,8 @@ var control = (function() { }, dependents: function() { return [ - ".control-header-date-separator-text" + ".control-header-date-separator-text", + ".control-header-date-separator-text-default" ]; } }, {