diff options
-rwxr-xr-x | apps/calendar/css/style.css | 2 | ||||
-rwxr-xr-x | apps/calendar/js/calendar.js | 18 |
2 files changed, 11 insertions, 9 deletions
diff --git a/apps/calendar/css/style.css b/apps/calendar/css/style.css index c833ae130cb..afdd64b4321 100755 --- a/apps/calendar/css/style.css +++ b/apps/calendar/css/style.css @@ -52,3 +52,5 @@ .weekend .events{text-align: center;margin: 0; padding: 0;vertical-align: top;background: #F3F3F3; width: 100%; } .weekend_thead, .weekend_row{height: 20px;text-align: center;text-align: center;background: #F3F3F3;} .thisday{background: #FFFABC;text-align: center;margin: 0;padding: 0;vertical-align: top;height: 20px;} + +input[type="button"].active {color: #0098E4} diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index 8b291265e94..65ebdcb3c28 100755 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -164,8 +164,8 @@ Calendar={ if (view == oc_cal_currentview){ return; } - $('#'+oc_cal_currentview).css('display', "none"); - $('#'+oc_cal_currentview + "_radio").css('color', "#000000"); + $('#'+oc_cal_currentview).hide(); + $('#'+oc_cal_currentview + "_radio").removeClass('active'); oc_cal_currentview = view; //sending ajax request on every change view $("#sysbox").load(oc_webroot + "/apps/calendar/ajax/changeview.php?v="+view); @@ -189,8 +189,8 @@ Calendar={ default: break; } - $('#'+oc_cal_currentview).css('display', "block"); - $('#'+oc_cal_currentview + "_radio").css('color', "#0098E4"); + $('#'+oc_cal_currentview).show(); + $('#'+oc_cal_currentview + "_radio").addClass('active'); this.updateView(); }, updateDate:function(direction){ @@ -560,8 +560,8 @@ Calendar={ monthview_dayofweek--; } } - $("#onemonthview .week_5").css('display', "none"); - $("#onemonthview .week_6").css('display', "none"); + $("#onemonthview .week_5").hide(); + $("#onemonthview .week_6").hide(); oc_cal_rows = parseInt(monthview_dayofweek) + parseInt(cal[oc_cal_month]); oc_cal_rows = oc_cal_rows / 7; oc_cal_rows = Math.ceil(oc_cal_rows); @@ -598,14 +598,14 @@ Calendar={ } } if(oc_cal_rows == 5) { - $("#onemonthview .week_5").css('display', "table-row"); + $("#onemonthview .week_5").show(); for(var i = 1;i <= 6;i++){ $("#onemonthview .week_" + String(i)).height("18%"); } } if(oc_cal_rows == 6) { - $("#onemonthview .week_5").css('display', "table-row"); - $("#onemonthview .week_6").css('display', "table-row"); + $("#onemonthview .week_5").show(); + $("#onemonthview .week_6").show(); for(var i = 1;i <= 6;i++){ $("#onemonthview .week_" + String(i)).height("14%"); } |