summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien MUETTON <the.mouette@gmail.com>2010-09-08 15:43:07 +0200
committerJulien MUETTON <the.mouette@gmail.com>2010-09-08 15:43:07 +0200
commit799edbac6a9e7c8c1e765536c59782fe01a21550 (patch)
tree3f239c9085dd4fec4dd650dc4ad78f6edcbd673a
parent15856104404ced7c77f4891bf597919e4381e384 (diff)
parent0ff86a22833fdeb72d87394bc9fe60a9178ff56f (diff)
downloadjquery-week-calendar-799edbac6a9e7c8c1e765536c59782fe01a21550.zip
jquery-week-calendar-799edbac6a9e7c8c1e765536c59782fe01a21550.tar.gz
jquery-week-calendar-799edbac6a9e7c8c1e765536c59782fe01a21550.tar.bz2
Merge branch 'master' into gh-pages
-rw-r--r--jquery.weekcalendar.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/jquery.weekcalendar.js b/jquery.weekcalendar.js
index 81347b3..dddfe36 100644
--- a/jquery.weekcalendar.js
+++ b/jquery.weekcalendar.js
@@ -2126,10 +2126,13 @@
_getEventUserId: function(calEvent){
var self = this;
var options = this.options;
- if($.isFunction(options.getEventUserId)){
+ if( options.showAsSeparateUsers && options.users && options.users.length ){
+ if($.isFunction(options.getEventUserId)){
return options.getEventUserId(calEvent, self.element);
- }
- return calEvent.userId;
+ }
+ return calEvent.userId;
+ }
+ return [];
},
/**
* sets the event user id on given calEvent