mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 14:23:53 +00:00
Adjust fields widget to sort fields
Making it easier to track .tid files under source code control
This commit is contained in:
parent
5221362791
commit
e925f1c3dd
@ -37,7 +37,15 @@ FieldsWidget.prototype.generate = function() {
|
|||||||
// Compose the template
|
// Compose the template
|
||||||
var text = [];
|
var text = [];
|
||||||
if(this.template && tiddler) {
|
if(this.template && tiddler) {
|
||||||
|
var fields = [];
|
||||||
for(var fieldName in tiddler.fields) {
|
for(var fieldName in tiddler.fields) {
|
||||||
|
if(exclude.indexOf(fieldName) === -1) {
|
||||||
|
fields.push(fieldName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fields.sort();
|
||||||
|
for(var f=0; f<fields.length; f++) {
|
||||||
|
fieldName = fields[f];
|
||||||
if(exclude.indexOf(fieldName) === -1) {
|
if(exclude.indexOf(fieldName) === -1) {
|
||||||
var row = this.template,
|
var row = this.template,
|
||||||
value = tiddler.getFieldString(fieldName);
|
value = tiddler.getFieldString(fieldName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user