projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac2de5b
)
Fix setting share icon if creating a new calendar.
author
Jan Schneider
<jan@horde.org>
Tue, 15 Jun 2010 17:56:33 +0000
(19:56 +0200)
committer
Jan Schneider
<jan@horde.org>
Tue, 15 Jun 2010 17:56:33 +0000
(19:56 +0200)
kronolith/js/kronolith.js
patch
|
blob
|
history
diff --git
a/kronolith/js/kronolith.js
b/kronolith/js/kronolith.js
index
dade4e6
..
d1ae457
100644
(file)
--- a/
kronolith/js/kronolith.js
+++ b/
kronolith/js/kronolith.js
@@
-1036,7
+1036,9
@@
KronolithCore = {
{
if (cal.owner && cal.perms) {
$H(cal.perms).each(function(perm) {
- if (perm.key != 'type' && perm.value) {
+ if (perm.key != 'type' &&
+ ((Object.isArray(perm.value) && perm.value.size()) ||
+ (!Object.isArray(perm.value) && perm.value))) {
element.insert(' ').insert(new Element('img', { src: Kronolith.conf.URI_IMG + 'attendees-' + cal.fg.substring(1) + '.png', title: Kronolith.text.shared }));
throw $break;
}