[commit #11189] Ticket #1159

0 views
Skip to first unread message

s...@tiddlywiki.org

unread,
Nov 5, 2009, 10:04:29 AM11/5/09
to
http://trac.tiddlywiki.org/changeset/11189

MartinBudden
2009-11-05 07:04:29 -0800 (Thu, 05 Nov 2009)
60
Ticket #1159

findContainingTiddler doesn't work with popups

---------------

U Trunk/core/js/Story.js

---------------

Modified: Trunk/core/js/Story.js
===================================================================
--- Trunk/core/js/Story.js 2009-11-05 14:30:27 UTC (rev 11188)
+++ Trunk/core/js/Story.js 2009-11-05 15:04:29 UTC (rev 11189)
@@ -517,7 +517,7 @@
Story.prototype.findContainingTiddler = function(e)
{
while(e && !hasClass(e,"tiddler"))
- e = e.parentNode;
+ e = hasClass(e,"popup") ? Popup.stack[0].root : e.parentNode;
return e;
};

Reply all
Reply to author
Forward
0 new messages