Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-09-03 01:51:18 +0400
committerBart Visscher <bartv@thisnet.nl>2011-09-03 01:51:18 +0400
commitafb07d3e3953c5812de4f165c38b1cb96826da48 (patch)
tree9f87cf99cd9bbf28fe0cdd256259ad04124b05ea
parent208852abf25c207c1ae44e34aecdc48fa879e930 (diff)
Use css class for view selection radio buttons hilighting
-rwxr-xr-xapps/calendar/css/style.css2
-rwxr-xr-xapps/calendar/js/calendar.js18
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%");
}