Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 4f3d0a6b authored by Woraprat's avatar Woraprat
Browse files

update project year

parent 02da99ba
No related branches found
No related tags found
No related merge requests found
...@@ -150,7 +150,7 @@ function create_table(data) { ...@@ -150,7 +150,7 @@ function create_table(data) {
const template_clone = template.content.cloneNode(true); const template_clone = template.content.cloneNode(true);
template_clone.querySelector('.index').innerText = index+1 template_clone.querySelector('.index').innerText = index+1
template_clone.querySelector('.name').innerText = row.name_th; template_clone.querySelector('.name').innerText = row.name_th;
template_clone.querySelector('.year').innerText = row.date; template_clone.querySelector('.year').innerText = (+row.date+543);
let graduation let graduation
if(row.cluster_id != 0){ if(row.cluster_id != 0){
graduation = 2 graduation = 2
...@@ -188,7 +188,7 @@ function create_option_year(data){ ...@@ -188,7 +188,7 @@ function create_option_year(data){
data.forEach((row, index) => { data.forEach((row, index) => {
option = document.createElement("option") option = document.createElement("option")
option.setAttribute("value", row.date) option.setAttribute("value", row.date)
option.text = row.date option.text = (+row.date+543)
selectList.appendChild(option) selectList.appendChild(option)
}) })
} }
......
...@@ -150,7 +150,7 @@ function create_table(data) { ...@@ -150,7 +150,7 @@ function create_table(data) {
const template_clone = template.content.cloneNode(true); const template_clone = template.content.cloneNode(true);
template_clone.querySelector('.index').innerText = index+1 template_clone.querySelector('.index').innerText = index+1
template_clone.querySelector('.name').innerText = row.name_th; template_clone.querySelector('.name').innerText = row.name_th;
template_clone.querySelector('.year').innerText = row.date; template_clone.querySelector('.year').innerText = (+row.date+543);
let graduation let graduation
if(row.cluster_id != 0){ if(row.cluster_id != 0){
graduation = 2 graduation = 2
...@@ -187,7 +187,7 @@ function create_option_year(data){ ...@@ -187,7 +187,7 @@ function create_option_year(data){
data.forEach((row, index) => { data.forEach((row, index) => {
option = document.createElement("option") option = document.createElement("option")
option.setAttribute("value", row.date) option.setAttribute("value", row.date)
option.text = row.date option.text = (+row.date+543)
selectList.appendChild(option) selectList.appendChild(option)
}) })
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment