for (var l = 0; l < elems.length; l++) {
var id = elems[l].id
- var is_cat = elems[l].cat;
+ var kind = elems[l].kind;
var ctr = parseInt(elems[l].counter)
var error = elems[l].error;
var has_img = elems[l].has_img;
continue;
}
- if (is_cat) {
+ if (kind && kind == "cat") {
var catctr = $("FCATCTR-" + id);
if (catctr) {
catctr.innerHTML = "(" + ctr + ")";
/* Labels category */
- $cv = array("id" => -2, "cat" => true,
+ $cv = array("id" => -2, "kind" => "cat",
"counter" => getCategoryUnread($link, -2));
array_push($ret_arr, $cv);
while ($line = db_fetch_assoc($result)) {
$line["cat_id"] = (int) $line["cat_id"];
- $cv = array("id" => $line["cat_id"], "cat" => true,
+ $cv = array("id" => $line["cat_id"], "kind" => "cat",
"counter" => $line["unread"]);
array_push($ret_arr, $cv);
$tag = htmlspecialchars($tag);
$cv = array("id" => $tag,
- "tag" => true,
+ "kind" => "tag",
"counter" => $unread);
array_push($ret_arr, $cv);