From b01026f9b84792e8aa5679bd5e23f0a1ac4c50dc Mon Sep 17 00:00:00 2001 From: taro-k Date: Thu, 9 Oct 2014 12:30:11 +0900 Subject: [PATCH] pre-fill tag page form with the tag #4234 --- app/assets/javascripts/app/views/publisher_view.js | 3 +++ config/locales/diaspora/en.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/views/publisher_view.js b/app/assets/javascripts/app/views/publisher_view.js index a79db2cfc..1c3e83313 100644 --- a/app/assets/javascripts/app/views/publisher_view.js +++ b/app/assets/javascripts/app/views/publisher_view.js @@ -56,6 +56,9 @@ app.views.Publisher = Backbone.View.extend({ if( this.el_hiddenInput.val() == "" ) { this.el_hiddenInput.val( this.el_input.val() ); } + if( this.el_input.val() == "" ) { + this.el_input.val( this.el_hiddenInput.val() ); + } // hide close and preview buttons, in case publisher is standalone // (e.g. bookmarklet, mentions popup) diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index e2b3c227c..6497bcd59 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -1240,7 +1240,7 @@ en: tags: title: "Posts tagged: %{tags}" contacts_title: "People who dig this tag" - tag_prefill_text: "The thing about %{tag_name} is... " + tag_prefill_text: "%{tag_name} " public: title: "Public Activity"