1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-24 20:27:38 +00:00

Minor tweaks to shadow warning infrastructure

1. Moved some methods out of boot.js because they are not needed until
after bootup
2. Added alternate message for editing an overridden shadow tiddler
3. Minor style tweaks
This commit is contained in:
Jermolene
2014-04-28 15:16:31 +01:00
parent a90339d1e5
commit 84cd296c58
10 changed files with 67 additions and 48 deletions

View File

@@ -20,6 +20,10 @@ exports.isPlugin = function() {
return this.fields.type === "application/json" && this.hasField("plugin-type");
}
exports.isDraft = function() {
return this.hasField("draft.of");
};
exports.getFieldString = function(field) {
var value = this.fields[field];
// Check for a missing field