http://trac.tiddlywiki.org/changeset/12023
FND
2010-04-16 06:13:27 -0700 (Fri, 16 Apr 2010)
166
updated backstage.init to clear existing backstage elements
This improves extensibility, allowing plugins to change the default set
of backstage tasks.
ticket #1222
---------------
U Trunk/core/js/Backstage.js
---------------
Modified: Trunk/core/js/Backstage.js
===================================================================
--- Trunk/core/js/Backstage.js 2010-04-16 13:13:18 UTC (rev 12022)
+++ Trunk/core/js/Backstage.js 2010-04-16 13:13:27 UTC (rev 12023)
@@ -19,8 +19,8 @@
init: function() {
var cmb = config.messages.backstage;
this.area = document.getElementById("backstageArea");
- this.toolbar = document.getElementById("backstageToolbar");
- this.button = document.getElementById("backstageButton");
+ this.toolbar = jQuery("#backstageToolbar").empty()[0];
+ this.button = jQuery("#backstageButton").empty()[0];
this.button.style.display = "block";
var t = cmb.open.text + " " + glyph("bentArrowLeft");
this.showButton =
createTiddlyButton(this.button,t,cmb.open.tooltip,
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.