From 31177e6bdb4d17935791cbf21218646aaec797ec Mon Sep 17 00:00:00 2001 From: arlogn Date: Thu, 9 Jan 2014 02:33:47 +0100 Subject: [PATCH] bookmarklet publisher more usable mobile --- app/views/status_messages/bookmarklet.mobile.haml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/views/status_messages/bookmarklet.mobile.haml b/app/views/status_messages/bookmarklet.mobile.haml index 64ccf6189..a9dffc6cc 100644 --- a/app/views/status_messages/bookmarklet.mobile.haml +++ b/app/views/status_messages/bookmarklet.mobile.haml @@ -5,10 +5,13 @@ = render :partial => 'shared/publisher', :locals => { :aspect => :profile, :selected_aspects => @aspects, :aspect_ids => @aspect_ids } :javascript - var contents = "#{escape_javascript params[:title]} - #{escape_javascript params[:url]}"; - var notes = "#{escape_javascript params[:notes]}"; - if (notes.length > 0){ - contents = contents + " - " + notes; + var contents = "#{escape_javascript params[:content]}"; + if(!contents){ + contents = "#{escape_javascript params[:title]} - #{escape_javascript params[:url]}"; + var notes = "#{escape_javascript params[:notes]}"; + if (notes.length > 0){ + contents += " - " + notes; + } } $(document).ready(function() {