0.1.21 fixes

This commit is contained in:
SJ 2012-09-17 16:49:27 +02:00
parent 0004e2b85d
commit 453d20adc5
3 changed files with 9 additions and 3 deletions

View File

@ -261,7 +261,8 @@ create table if not exists `folder_extra` (
`id` int unsigned not null auto_increment, `id` int unsigned not null auto_increment,
`uid` int unsigned not null, `uid` int unsigned not null,
`name` char(64) not null, `name` char(64) not null,
unique(uid, name) unique(uid, name),
key (`id`)
) ENGINE=InnoDB; ) ENGINE=InnoDB;

View File

@ -29,7 +29,8 @@ create table if not exists `folder_extra` (
`id` int unsigned not null auto_increment, `id` int unsigned not null auto_increment,
`uid` int unsigned not null, `uid` int unsigned not null,
`name` char(64) not null, `name` char(64) not null,
unique(uid, name) unique(uid, name),
key (`id`)
) ENGINE=InnoDB; ) ENGINE=InnoDB;
create table if not exists `folder_message` ( create table if not exists `folder_message` (

View File

@ -218,6 +218,7 @@ function assemble_search_term(n, prefix) {
var e; var e;
var folders = ''; var folders = '';
var extra_folders = ''; var extra_folders = '';
var childNodeArray = new Array();
e = document.getElementById(prefix + 'searchtype'); e = document.getElementById(prefix + 'searchtype');
if(e && e.value) { data = data + "searchtype=" + e.value; } if(e && e.value) { data = data + "searchtype=" + e.value; }
@ -288,7 +289,10 @@ function assemble_search_term(n, prefix) {
e = document.getElementById(prefix + 'order'); e = document.getElementById(prefix + 'order');
if(e && e.value) { data = data + "&order=" + e.value; } if(e && e.value) { data = data + "&order=" + e.value; }
var childNodeArray = document.getElementById('folders').getElementsByTagName('*');
a = document.getElementById('folders');
if(a) { childNodeArray = a.getElementsByTagName('*'); }
if(childNodeArray) { if(childNodeArray) {
for(i=0; i<childNodeArray.length; i++) { for(i=0; i<childNodeArray.length; i++) {
b = childNodeArray[i]; b = childNodeArray[i];