summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Gomez Duro <pablozgz@gmail.com>2012-04-16 11:17:39 +0200
committerPablo Gomez Duro <pablozgz@gmail.com>2012-04-16 11:17:39 +0200
commitac0855a2edf7fa0c73b162cd105f1f9dd1744a4a (patch)
tree637ea586201dfe387932642ebe436c0702160109
parent772abe3f3bbfe903f35f71b7843073e2fa1884ad (diff)
downloadjquery-week-calendar-ac0855a2edf7fa0c73b162cd105f1f9dd1744a4a.zip
jquery-week-calendar-ac0855a2edf7fa0c73b162cd105f1f9dd1744a4a.tar.gz
jquery-week-calendar-ac0855a2edf7fa0c73b162cd105f1f9dd1744a4a.tar.bz2
Added showHeader option to completely disable header (including buttons)
-rw-r--r--jquery.weekcalendar.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jquery.weekcalendar.js b/jquery.weekcalendar.js
index d379330..c632fb5 100644
--- a/jquery.weekcalendar.js
+++ b/jquery.weekcalendar.js
@@ -55,6 +55,7 @@
timeslotsPerHour: 4,
minDate: null,
maxDate: null,
+ showHeader: true,
buttons: true,
buttonText: {
today: 'today',
@@ -688,6 +689,7 @@
*/
_renderCalendarButtons: function($calendarContainer) {
var self = this, options = this.options;
+ if ( !options.showHeader ) return;
if (options.buttons) {
var calendarNavHtml = '';