https://bitbucket.org/wez/mtrack/changeset/4f8a72167e88/
changeset: 4f8a72167e88
user: wez
date: 2012-04-20 07:08:55
summary: re-order the DOM operations so that macros that emit HTML that use flot
will work correctly in the wiki editor:
```
[[MilestoneSummary(my milestone)]]
```
affected #: 1 file
diff -r f277876b20fbd3ad743f5ecd27f812a583fe7a90 -r 4f8a72167e883274439a6c0a6faabb1de37bf04f web/js/views.js
--- a/web/js/views.js
+++ b/web/js/views.js
@@ -650,10 +650,10 @@
if (!view.editing || view.readonly) {
view.ta = null;
+ $(view.el).empty();
view.preview = $("<div class='wiki-preview'/>");
+ $(view.el).append(view.preview);
view.preview.html(html);
- $(view.el).empty();
- $(view.el).append(view.preview);
if (!view.readonly) {
view.preview.
addClass('click-to-edit');
Repository URL: https://bitbucket.org/wez/mtrack/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.