Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Commit

Permalink
feat(dayView): remove the day view column header
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the day view column header has been removed

Closes #293
  • Loading branch information
Matt Lewis committed Feb 27, 2016
1 parent 66277a1 commit e624c68
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -207,7 +207,7 @@ angular.module('myModule')

calendarConfig.allDateFormats.moment.title.day = 'ddd D MMM'; //this will configure the day view title to be shorter

calendarConfig.i18nStrings.eventsLabel = 'Events'; //This will set the events label on the day view
calendarConfig.i18nStrings.weekNumber = 'Week {week}'; //This will set the week number hover label on the month view

calendarConfig.displayAllMonthEvents = true; //This will display all events on a month view even if they're not in the current month. Default false.

Expand Down
2 changes: 0 additions & 2 deletions docs/examples/i18n/javascript.js
Expand Up @@ -10,8 +10,6 @@ angular

calendarConfig.dateFormatter = 'moment'; // use moment instead of angular for formatting dates
var originali18n = angular.copy(calendarConfig.i18nStrings);
calendarConfig.i18nStrings.eventsLabel = 'Des événements';
calendarConfig.i18nStrings.timeLabel = 'Temps';
calendarConfig.i18nStrings.weekNumber = 'Semaine {week}';

$window.moment = $window.moment || moment;
Expand Down
3 changes: 1 addition & 2 deletions src/directives/mwlCalendarDay.js
Expand Up @@ -4,11 +4,10 @@ var angular = require('angular');

angular
.module('mwl.calendar')
.controller('MwlCalendarDayCtrl', function($scope, $sce, moment, calendarHelper, calendarConfig) {
.controller('MwlCalendarDayCtrl', function($scope, $sce, moment, calendarHelper) {

var vm = this;

vm.calendarConfig = calendarConfig;
vm.$sce = $sce;

$scope.$on('calendar.refreshView', function() {
Expand Down
2 changes: 0 additions & 2 deletions src/services/calendarConfig.js
Expand Up @@ -50,8 +50,6 @@ angular
showTimesOnWeekView: false,
displayAllMonthEvents: false,
i18nStrings: {
eventsLabel: 'Events',
timeLabel: 'Time',
weekNumber: 'Week {week}'
},
templates: {}
Expand Down
5 changes: 0 additions & 5 deletions src/templates/calendarDayView.html
@@ -1,9 +1,4 @@
<div class="cal-day-box">
<div class="row-fluid clearfix cal-row-head">
<div class="span1 col-xs-1 cal-cell" ng-bind="vm.calendarConfig.i18nStrings.timeLabel"></div>
<div class="span11 col-xs-11 cal-cell" ng-bind="vm.calendarConfig.i18nStrings.eventsLabel"></div>
</div>

<div class="cal-day-panel clearfix" ng-style="{height: vm.dayViewHeight + 'px'}">

<mwl-calendar-hour-list
Expand Down

0 comments on commit e624c68

Please sign in to comment.