implement (incomplete) sortable feedlist
This commit is contained in:
parent
4f3760433f
commit
782ddd7014
|
@ -354,6 +354,8 @@ function feedlist_init() {
|
|||
|
||||
init_collapsable_feedlist(getInitParam("theme"));
|
||||
|
||||
Sortable.create('feedList');
|
||||
|
||||
} catch (e) {
|
||||
exception_error("feedlist/init", e);
|
||||
}
|
||||
|
|
|
@ -4109,7 +4109,7 @@
|
|||
|
||||
print "</span>";
|
||||
|
||||
print "</li>";
|
||||
//print "</li>";
|
||||
|
||||
print "<ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\" style='$holder_style'>";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require_once "functions.php";
|
||||
|
||||
define('EXPECTED_CONFIG_VERSION', 17);
|
||||
define('SCHEMA_VERSION', 40);
|
||||
define('SCHEMA_VERSION', 41);
|
||||
|
||||
if (!file_exists("config.php")) {
|
||||
print __("<b>Fatal Error</b>: You forgot to copy
|
||||
|
|
|
@ -53,6 +53,7 @@ create table ttrss_feed_categories(id integer not null primary key auto_incremen
|
|||
owner_uid integer not null,
|
||||
title varchar(200) not null,
|
||||
collapsed bool not null default false,
|
||||
order_id integer not null default 0,
|
||||
index(owner_uid),
|
||||
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB;
|
||||
|
||||
|
@ -209,7 +210,7 @@ create table ttrss_tags (id integer primary key auto_increment,
|
|||
|
||||
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
|
||||
|
||||
insert into ttrss_version values (40);
|
||||
insert into ttrss_version values (41);
|
||||
|
||||
create table ttrss_enclosures (id serial not null primary key,
|
||||
content_url text not null,
|
||||
|
|
|
@ -48,6 +48,7 @@ insert into ttrss_users (login,pwd_hash,access_level) values ('admin',
|
|||
create table ttrss_feed_categories(id serial not null primary key,
|
||||
owner_uid integer not null references ttrss_users(id) on delete cascade,
|
||||
collapsed boolean not null default false,
|
||||
order_id integer not null default 0,
|
||||
title varchar(200) not null);
|
||||
|
||||
create table ttrss_feeds (id serial not null primary key,
|
||||
|
@ -189,7 +190,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);
|
|||
|
||||
create table ttrss_version (schema_version int not null);
|
||||
|
||||
insert into ttrss_version values (40);
|
||||
insert into ttrss_version values (41);
|
||||
|
||||
create table ttrss_enclosures (id serial not null primary key,
|
||||
content_url text not null,
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
alter table ttrss_feed_categories add column order_id integer;
|
||||
update ttrss_feed_categories set order_id = 0;
|
||||
alter table ttrss_feed_categories change order_id order_id integer not null;
|
||||
alter table ttrss_feed_categories alter column order_id set default 0;
|
||||
|
||||
update ttrss_version set schema_version = 41;
|
|
@ -0,0 +1,6 @@
|
|||
alter table ttrss_feed_categories add column order_id int;
|
||||
update ttrss_feed_categories set order_id = 0;
|
||||
alter table ttrss_feed_categories alter column order_id set not null;
|
||||
alter table ttrss_feed_categories alter column order_id set default 0;
|
||||
|
||||
update ttrss_version set schema_version = 41;
|
Loading…
Reference in New Issue