From 4ccc452b74a3065a1e1ebb1b16fa1812398fa244 Mon Sep 17 00:00:00 2001 From: Alib Date: Sun, 28 Mar 2010 16:16:55 +0200 Subject: change date format to xxxx/xx/xx --- js/functions.js | 4 ++-- js/istreamdev.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/functions.js b/js/functions.js index 98609cd..9621612 100644 --- a/js/functions.js +++ b/js/functions.js @@ -36,8 +36,8 @@ function openSelectDate(timer_year,timer_month,timer_day) { function done_date() { var results = SpinningWheel.getSelectedValues(); - document.getElementById('layer_date').innerHTML = results.values.join('-'); - document.timer.timer_date.value = results.values.join('-'); + document.getElementById('layer_date').innerHTML = results.values.join('/'); + document.timer.timer_date.value = results.values.join('/'); $('a').removeClass('active'); } diff --git a/js/istreamdev.js b/js/istreamdev.js index 7628f5e..40f380e 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -856,8 +856,8 @@ function gen_edittimer(id,name,active,channumber,channame,date,starttime,endtime $('#timer_chan option[value="' + channumber + '"]').attr("selected", "selected"); $('#timer_date').val(date); var wheeldate = date; - while (wheeldate.indexOf("-") > -1) - wheeldate = wheeldate.replace("-", ","); + while (wheeldate.indexOf("/") > -1) + wheeldate = wheeldate.replace("/", ","); $('#a_date').attr('href', "javascript:openSelectDate(" + wheeldate + ");"); $('#layer_date').html(date); $('#timer_starttime').val(starttime); -- cgit v1.2.3