Hello again.

Recently, I wrote a simple plugin to improve TW experience on mobile. It's 
purpose is to hide TW messages on clicking anywhere instead of "close" and 
some other buttons (will be useful with autosave). The code is this:


jQuery(document.body).bind("click",clearMessage);

// postpone messages so that they are not hidden by the click that caused 
them 
var orig_displayMessage = displayMessage;
displayMessage = function(a,b) {
  mCall = function() {orig_displayMessage(a,b)};
  setTimeout(mCall,100);
};


However, I've got a problem: when I activate the plugin, popups opened by 
the <<tag>> macro and other macros (jump, fields, references in toolbar 
etc) don't close onclick elsewhere; instead, only opening another popup 
closes the previous one. I guess, my call to bind somehow eats other 
events, so the question is -- how to prevent this?

Best regards,
Yakov.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to