diaspora/app/views/status_messages/bookmarklet.mobile.haml
Jason Robinson e4e9f40b2c Revert "Fix toggling services for mobile bookmarklet"
This fixed the toggling of services, but broke the actual
bookmarklet :)

This reverts commit 1bd7989045.
2014-06-19 21:47:34 +03:00

24 lines
799 B
Text

-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
= render :partial => 'publisher/publisher', :locals => { :aspect => :profile, :selected_aspects => @aspects, :aspect_ids => @aspect_ids }
:javascript
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() {
if (contents.length > 0) {
$("#status_message_text").val(contents);
}
});
- content_for(:head) do
= javascript_include_tag :jquery, :mobile