implement (incomplete) sortable feedlist
This commit is contained in:
parent
4f3760433f
commit
782ddd7014
7 changed files with 20 additions and 4 deletions
|
@ -354,6 +354,8 @@ function feedlist_init() {
|
||||||
|
|
||||||
init_collapsable_feedlist(getInitParam("theme"));
|
init_collapsable_feedlist(getInitParam("theme"));
|
||||||
|
|
||||||
|
Sortable.create('feedList');
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("feedlist/init", e);
|
exception_error("feedlist/init", e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4109,7 +4109,7 @@
|
||||||
|
|
||||||
print "</span>";
|
print "</span>";
|
||||||
|
|
||||||
print "</li>";
|
//print "</li>";
|
||||||
|
|
||||||
print "<ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\" style='$holder_style'>";
|
print "<ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\" style='$holder_style'>";
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
require_once "functions.php";
|
require_once "functions.php";
|
||||||
|
|
||||||
define('EXPECTED_CONFIG_VERSION', 17);
|
define('EXPECTED_CONFIG_VERSION', 17);
|
||||||
define('SCHEMA_VERSION', 40);
|
define('SCHEMA_VERSION', 41);
|
||||||
|
|
||||||
if (!file_exists("config.php")) {
|
if (!file_exists("config.php")) {
|
||||||
print __("<b>Fatal Error</b>: You forgot to copy
|
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,
|
owner_uid integer not null,
|
||||||
title varchar(200) not null,
|
title varchar(200) not null,
|
||||||
collapsed bool not null default false,
|
collapsed bool not null default false,
|
||||||
|
order_id integer not null default 0,
|
||||||
index(owner_uid),
|
index(owner_uid),
|
||||||
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB;
|
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;
|
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,
|
create table ttrss_enclosures (id serial not null primary key,
|
||||||
content_url text not null,
|
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,
|
create table ttrss_feed_categories(id serial not null primary key,
|
||||||
owner_uid integer not null references ttrss_users(id) on delete cascade,
|
owner_uid integer not null references ttrss_users(id) on delete cascade,
|
||||||
collapsed boolean not null default false,
|
collapsed boolean not null default false,
|
||||||
|
order_id integer not null default 0,
|
||||||
title varchar(200) not null);
|
title varchar(200) not null);
|
||||||
|
|
||||||
create table ttrss_feeds (id serial not null primary key,
|
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);
|
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,
|
create table ttrss_enclosures (id serial not null primary key,
|
||||||
content_url text not null,
|
content_url text not null,
|
||||||
|
|
6
schema/versions/mysql/41.sql
Normal file
6
schema/versions/mysql/41.sql
Normal file
|
@ -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;
|
6
schema/versions/pgsql/41.sql
Normal file
6
schema/versions/pgsql/41.sql
Normal file
|
@ -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 a new issue