fixed bookmarlet
This commit is contained in:
parent
d395a29efb
commit
6518a89302
3 changed files with 5 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ input[type=text]:focus, input[type=password]:focus, input.text:focus, input.titl
|
|||
input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;}
|
||||
input.text, input.title {width:300px;padding:5px;}
|
||||
input.title {font-size:1.5em;}
|
||||
textarea {width:390px;height:250px;padding:5px;}
|
||||
textarea {width:390px;height:50px;padding:5px;}
|
||||
input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;}
|
||||
form.inline {line-height:3;}
|
||||
form.inline p {margin-bottom:0;}
|
||||
|
|
|
|||
Loading…
Reference in a new issue