diff --git a/app/views/status_messages/bookmarklet.html.haml b/app/views/status_messages/bookmarklet.html.haml index adb24271c..bbb2133c4 100644 --- a/app/views/status_messages/bookmarklet.html.haml +++ b/app/views/status_messages/bookmarklet.html.haml @@ -13,6 +13,7 @@ $(document).ready(function() { Publisher.open(); + Publisher.bookmarklet = true; $("#publisher").bind('ajax:success', function(){ $('h4').text("#{t('bookmarklet.post_success')}"); Publisher.close(); diff --git a/public/javascripts/publisher.js b/public/javascripts/publisher.js index e17751999..db58a22fd 100644 --- a/public/javascripts/publisher.js +++ b/public/javascripts/publisher.js @@ -5,6 +5,7 @@ //TODO: make this a widget var Publisher = { + bookmarklet = false, close: function(){ Publisher.form().addClass('closed'); Publisher.form().find("#publisher_textarea_wrapper").removeClass('active'); @@ -374,6 +375,7 @@ var Publisher = { } }, onSuccess: function(data, json, xhr){ + if(Publisher.bookmarklet == false){ var isPostVisible = AspectFilters.selectedGUIDS.length == 0; var postedTo = Publisher.selectedAspectIds(); $.each(AspectFilters.selectedGUIDS, function(index, value){ @@ -391,7 +393,7 @@ var Publisher = { message: Diaspora.I18n.t('successfully_posted_message_to_an_aspects_that_is_not_visible') }); } - + } //collapse publisher Publisher.close(); Publisher.clear(); diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 1f1058bd0..c611ff1cd 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -1035,6 +1035,7 @@ label textarea :z-index 2 :border none + :height 50px &:focus :outline 0