Permalink
Browse files

Merge pull request #131 from pablogd/header-disable

Added showHeader option to completely disable header (including buttons)
  • Loading branch information...
2 parents 062ad57 + ac0855a commit 2e4fae3cc97962cb3b618082fc7e3e00dc99bc53 @K-Phoen K-Phoen committed Jul 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 jquery.weekcalendar.js
View
@@ -56,6 +56,7 @@
timeslotsPerHour: 4,
minDate: null,
maxDate: null,
+ showHeader: true,
buttons: true,
buttonText: {
today: 'today',
@@ -692,6 +693,7 @@
*/
_renderCalendarButtons: function($calendarContainer) {
var self = this, options = this.options;
+ if ( !options.showHeader ) return;
if (options.buttons) {
var calendarNavHtml = '';

0 comments on commit 2e4fae3

Please sign in to comment.