You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/12/12 02:00:25 UTC

[incubator-ponymail-foal] 01/03: fix variable name and use glyphicons

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 1ac956df943a59e6188c5dfecbbfe9497f7c7a23
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat Dec 11 19:59:57 2021 -0600

    fix variable name and use glyphicons
---
 webui/js/source/datepicker.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/webui/js/source/datepicker.js b/webui/js/source/datepicker.js
index 549e494..acea4ed 100644
--- a/webui/js/source/datepicker.js
+++ b/webui/js/source/datepicker.js
@@ -586,7 +586,7 @@ function drawCalendarPicker(obj, date) {
     // Go to first day of the month
     mat.setDate(1)
 
-    obj.innerHTML = "<h3>" + months[mat.getMonth()] + ", " + mat.getFullYear() + ":</h3>"
+    obj.innerHTML = "<h3>" + MONTHS[mat.getMonth()] + ", " + mat.getFullYear() + ":</h3>"
     let tm = mat.getMonth()
 
     // -- Nav buttons --
@@ -596,7 +596,7 @@ function drawCalendarPicker(obj, date) {
     fixupPicker(a)
     a.setAttribute("onclick", "drawCalendarPicker(this.parentNode, '" + (mat.getFullYear() - 1) + '-' + (mat.getMonth() + 1) + '-' + mat.getDate() + "');")
     a.setAttribute("href", "javascript:void(0);")
-    a.innerHTML = "≪"
+    a.setAttribute("class", "glyphicon glyphicon-fast-backward");
     obj.appendChild(a)
 
     // back-a-month button
@@ -604,7 +604,7 @@ function drawCalendarPicker(obj, date) {
     fixupPicker(a)
     a.setAttribute("onclick", "drawCalendarPicker(this.parentNode, '" + mat.getFullYear() + '-' + (mat.getMonth()) + '-' + mat.getDate() + "');")
     a.setAttribute("href", "javascript:void(0);")
-    a.innerHTML = "&lt;"
+    a.setAttribute("class", "glyphicon glyphicon-step-backward");
     obj.appendChild(a)
 
     // forward-a-month button
@@ -612,7 +612,7 @@ function drawCalendarPicker(obj, date) {
     fixupPicker(a)
     a.setAttribute("onclick", "drawCalendarPicker(this.parentNode, '" + mat.getFullYear() + '-' + (mat.getMonth() + 2) + '-' + mat.getDate() + "');")
     a.setAttribute("href", "javascript:void(0);")
-    a.innerHTML = "&gt;"
+    a.setAttribute("class", "glyphicon glyphicon-step-forward");
     obj.appendChild(a)
 
     // forward-a-year button
@@ -620,7 +620,7 @@ function drawCalendarPicker(obj, date) {
     fixupPicker(a)
     a.setAttribute("onclick", "drawCalendarPicker(this.parentNode, '" + (mat.getFullYear() + 1) + '-' + (mat.getMonth() + 1) + '-' + mat.getDate() + "');")
     a.setAttribute("href", "javascript:void(0);")
-    a.innerHTML = "≫"
+    a.setAttribute("class", "glyphicon glyphicon-fast-forward");
     obj.appendChild(a)
     obj.appendChild(document.createElement('br'))