Fix bug where created/renamed folder could be inserted after another folder row but before its groups rows
This commit is contained in:
parent
f27fd97bd7
commit
5217368a0a
2 changed files with 8 additions and 3 deletions
|
@ -154,7 +154,12 @@ rcube_webmail.prototype.book_update = function(data, old)
|
|||
name = folders[n-1];
|
||||
for (n in sources)
|
||||
if (sources[n].realname && sources[n].realname == name) {
|
||||
row.insertAfter('#rcmli'+n);
|
||||
// folder row found
|
||||
n = $('#rcmli'+n);
|
||||
// skip groups
|
||||
while (n.next().hasClass('contactgroup'))
|
||||
n = n.next();
|
||||
row.insertAfter(n);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +174,7 @@ rcube_webmail.prototype.book_update = function(data, old)
|
|||
// remove old row (just after the new row has been inserted)
|
||||
refrow.remove();
|
||||
|
||||
// update groups
|
||||
// update groups
|
||||
for (n in groups) {
|
||||
if (groups[n].source == old) {
|
||||
// update existing row
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Kolab address book 0.5
|
||||
* Kolab address book 0.6
|
||||
*
|
||||
* Sample plugin to add a new address book source with data from Kolab storage
|
||||
* It provides also a possibilities to manage contact folders
|
||||
|
|
Loading…
Add table
Reference in a new issue