From fe7fd2ac7f32b46083c01825e1887ba413bae86c Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 8 Mar 2013 10:46:32 -0800 Subject: [PATCH 1/2] remove duplicated quote_title translation string --- config/locales/client.cs.yml | 1 - config/locales/client.en.yml | 1 - config/locales/client.fr.yml | 1 - config/locales/client.zh_CN.yml | 1 - 4 files changed, 4 deletions(-) diff --git a/config/locales/client.cs.yml b/config/locales/client.cs.yml index a86086b2a6d..7d01d98fe88 100644 --- a/config/locales/client.cs.yml +++ b/config/locales/client.cs.yml @@ -279,7 +279,6 @@ cs: show_preview: 'zobrazit náhled »' hide_preview: '« skrýt náhled' - quote_title: "Citovat příspěvek" bold_title: "Tučně" bold_text: "tučný text" italic_title: "Kurzíva" diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 102d0970a87..b1a388c7770 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -279,7 +279,6 @@ en: show_preview: 'show preview »' hide_preview: '« hide preview' - quote_title: "Quote Post" bold_title: "Strong" bold_text: "strong text" italic_title: "Emphasis" diff --git a/config/locales/client.fr.yml b/config/locales/client.fr.yml index 577e11205c1..2db6e6e30c2 100644 --- a/config/locales/client.fr.yml +++ b/config/locales/client.fr.yml @@ -272,7 +272,6 @@ fr: create_topic: "Créer une discussion" create_pm: "Créer un message privé." - quote_title: "Citer un message" bold_title: "Gras" bold_text: "texte en gras" italic_title: "Italique" diff --git a/config/locales/client.zh_CN.yml b/config/locales/client.zh_CN.yml index 3874ac91a5a..f9e421cae17 100644 --- a/config/locales/client.zh_CN.yml +++ b/config/locales/client.zh_CN.yml @@ -285,7 +285,6 @@ zh_CN: show_preview: '显示预览 »' hide_preview: '« 隐藏预览' - quote_title: "引用帖子" bold_title: "加粗" bold_text: "加粗文字" italic_title: "斜体" From ba80ca2ee598c503d8e31afe07627476c4fd4558 Mon Sep 17 00:00:00 2001 From: Austin Bergstrom Date: Sun, 10 Mar 2013 19:56:32 -0400 Subject: [PATCH 2/2] added observer to Discourse.PagedownEditor value to refresh previewer --- .../javascripts/discourse/views/pagedown_editor.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/pagedown_editor.js b/app/assets/javascripts/discourse/views/pagedown_editor.js index 4782cc91781..ca571be1254 100644 --- a/app/assets/javascripts/discourse/views/pagedown_editor.js +++ b/app/assets/javascripts/discourse/views/pagedown_editor.js @@ -34,7 +34,14 @@ Discourse.PagedownEditor = Ember.ContainerView.extend({ $wmdInput.data('init', true); this.editor = Discourse.Markdown.createEditor(); return this.editor.run(); - } + }, + + observeValue: (function() { + var _this = this; + Ember.run.next(null, function() { + _this.editor && _this.editor.refreshPreview(); + }); + }).observes('value') });