From 4606cb4f3b0fa3e6b5f2a6dc2a155b9e7638e951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 7 May 2013 12:34:47 +0200 Subject: [PATCH] FIX: hide/show preview in composer preference is saved in local storage --- app/assets/javascripts/discourse/models/composer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/composer.js b/app/assets/javascripts/discourse/models/composer.js index 50eb2cbc62a..914b94ce190 100644 --- a/app/assets/javascripts/discourse/models/composer.js +++ b/app/assets/javascripts/discourse/models/composer.js @@ -67,7 +67,7 @@ Discourse.Composer = Discourse.Model.extend({ togglePreview: function() { this.toggleProperty('showPreview'); - Discourse.KeyValueStore.set({ key: 'showPreview', value: this.get('showPreview') }); + Discourse.KeyValueStore.set({ key: 'composer.showPreview', value: this.get('showPreview') }); }, // Import a quote from the post