mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Remove type attribute from the list widget
It's just a shortcut that clutters things up; easier to do the same thing with a macro
This commit is contained in:
parent
a3fd5664e1
commit
a36d3895ff
@ -24,17 +24,6 @@ var ListWidget = function(renderer) {
|
||||
this.generate();
|
||||
};
|
||||
|
||||
/*
|
||||
These types are shorthands for particular filters
|
||||
*/
|
||||
var typeMappings = {
|
||||
all: "[!is[system]sort[title]]",
|
||||
recent: "[!is[system]sort[modified]]",
|
||||
missing: "[is[missing]sort[title]]",
|
||||
orphans: "[is[orphan]sort[title]]",
|
||||
system: "[is[system]sort[title]]"
|
||||
};
|
||||
|
||||
ListWidget.prototype.generate = function() {
|
||||
// Get our attributes
|
||||
this.macro = this.renderer.getAttribute("macro");
|
||||
@ -71,9 +60,7 @@ ListWidget.prototype.generate = function() {
|
||||
|
||||
ListWidget.prototype.getTiddlerList = function() {
|
||||
var filter;
|
||||
if(this.renderer.hasAttribute("type")) {
|
||||
filter = typeMappings[this.renderer.getAttribute("type")];
|
||||
} else if(this.renderer.hasAttribute("filter")) {
|
||||
if(this.renderer.hasAttribute("filter")) {
|
||||
filter = this.renderer.getAttribute("filter");
|
||||
}
|
||||
if(!filter) {
|
||||
|
Loading…
Reference in New Issue
Block a user