Tiddlywiki CSS selector

73 views
Skip to first unread message

Mohammad

unread,
Jun 25, 2019, 11:28:22 PM6/25/19
to TiddlyWiki
If you explore the Vanilla theme


you see selectore like

body.tc-dirty

What is this? why dirty is used?

--Mohammad

TonyM

unread,
Jun 26, 2019, 12:24:01 AM6/26/19
to TiddlyWiki
Mohammad

Its part of save and save before close mechanisium. It gets set on the body tag of the whole wiki. Dirty means something in memory not saved to disk.

I stumbled on it trying to fix a common case on a number of servers where the browser prompts unnecessarily for you to leave the tab window. This makes closing firefox with 10 of tabs a pain.

I need an action widget to do a simple JavaScript call but I don't know how yet.

Not solved yet.

Tony

Mat

unread,
Jun 26, 2019, 4:56:39 AM6/26/19
to TiddlyWiki
As far as I understand, you can tell if TW is in "dirty" state by looking at the save button - i.e if it is red or not.

<:-)

Jeremy Ruston

unread,
Jun 26, 2019, 7:59:42 AM6/26/19
to tiddl...@googlegroups.com
Hi Mohammad

To clarify, the term “dirty” is often used in programming to indicate an object whose state has changed but not yet been written to the backing store/database. For example:


It’s not intended as a user facing term; that would be something along the lines of “You have unsaved changes”.

Best wishes

Jeremy

On 26 Jun 2019, at 09:56, Mat <matia...@gmail.com> wrote:

As far as I understand, you can tell if TW is in "dirty" state by looking at the save button - i.e if it is red or not.

<:-)

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/89e5fa79-2268-46e3-a46e-60a0bcd78d48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mohammad

unread,
Jun 26, 2019, 8:29:07 AM6/26/19
to TiddlyWiki
Thank you Jeremy!

I thought it remained from TW first coding age!


Cheers
Mohammad


On Wednesday, June 26, 2019 at 4:29:42 PM UTC+4:30, Jeremy Ruston wrote:
Hi Mohammad

To clarify, the term “dirty” is often used in programming to indicate an object whose state has changed but not yet been written to the backing store/database. For example:


It’s not intended as a user facing term; that would be something along the lines of “You have unsaved changes”.

Best wishes

Jeremy

On 26 Jun 2019, at 09:56, Mat <matia...@gmail.com> wrote:

As far as I understand, you can tell if TW is in "dirty" state by looking at the save button - i.e if it is red or not.

<:-)

--
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 tiddl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages