kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Add isDraft to Tiddler object
Check to see if this tiddler is a draft (has a draft.of field)print-window-tiddler
rodzic
540681b2bc
commit
23640d7af4
|
@ -791,6 +791,10 @@ $tw.Tiddler.prototype.hasField = function(field) {
|
|||
return $tw.utils.hop(this.fields,field);
|
||||
};
|
||||
|
||||
$tw.Tiddler.prototype.isDraft = function() {
|
||||
return this.hasField("draft.of");
|
||||
};
|
||||
|
||||
/*
|
||||
Register and install the built in tiddler field modules
|
||||
*/
|
||||
|
|
Ładowanie…
Reference in New Issue