Having looked at the code a bit between meetings, maybe the unsaved data 
indicator could be handled by a plugin.  Something like (pseudocode):

    $tw.settings.heartbeat.indicator = setInterval(function () {
        if there is an '$:/plugins/OokTech/Bob/Unsent' tiddler with content {
            $tw.utils.toggleClass(document.body,"tc-dirty",true);
        } else {
            $tw.utils.toggleClass(document.body,"tc-dirty",false);
        }
    }, $tw.settings.heartbeat.interval);


"with content" is interesting.  Unsent is sometimes non-existent, sometimes 
it contains only "[]", and other times I think it contains JSON.

I'm not certain of any of this.  It's been years since I wrote any real 
code.

-- 
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/c8490b35-82fa-42ef-8a83-b1ad8c5f1fc2%40googlegroups.com.

Reply via email to