Fix bug where created/renamed folder could be inserted after another folder row but before its groups rows

This commit is contained in:
Aleksander Machniak 2011-11-11 16:54:29 +01:00
parent f27fd97bd7
commit 5217368a0a
2 changed files with 8 additions and 3 deletions

View file

@ -154,7 +154,12 @@ rcube_webmail.prototype.book_update = function(data, old)
name = folders[n-1]; name = folders[n-1];
for (n in sources) for (n in sources)
if (sources[n].realname && sources[n].realname == name) { 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; break;
} }
} }

View file

@ -1,7 +1,7 @@
<?php <?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 * Sample plugin to add a new address book source with data from Kolab storage
* It provides also a possibilities to manage contact folders * It provides also a possibilities to manage contact folders