I am (clearly) not a programmer and (clearly) not familiar with how to
program for Tiddlywiki, but here's what I came up with.
(function(){
exports.name = "test1";
exports.platforms = ["browser"];
exports.after = ["story"];
exports.synchronous = true;
exports.startup = function() {
setInterval(function () {
tiddler = $tw.wiki.getTiddler('$:/plugins/OokTech/Bob/Unsent');
if (tiddler) {
$tw.utils.toggleClass(document.body,"tc-dirty",true);
}
}, 500);
}
})();
There's something else setting the document class to clean about once a
second. (Maybe the ping?) The effect is that when the Unsent tiddler
exists, the save icon flashes. It doesn't handle the case where Unsent is
an empty array, but, as I said, I'm not a programmer any longer.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/790fe986-de5b-4fdb-8613-5a55399ffcd2%40googlegroups.com.