fixed #1023 (again)
This commit is contained in:
parent
66380fd33f
commit
a3c287ca9a
1 changed files with 2 additions and 2 deletions
|
|
@ -343,11 +343,11 @@ var Publisher = {
|
|||
$("#publisher textarea").removeClass("with_attachments").css('paddingBottom', '');
|
||||
},
|
||||
onFailure: function(data, json, xhr){
|
||||
json = $.parseJSON(html.responseText);
|
||||
json = $.parseJSON(json.responseText);
|
||||
if(json.errors.length !== 0){
|
||||
Diaspora.widgets.alert.alert(json.errors);
|
||||
}else{
|
||||
Diaspora.widgets.alert.alert('Failed to post message!');
|
||||
Diaspora.widgets.alert.alert(Diaspora.widgets.i18n.t('failed_to_post_message'));
|
||||
}
|
||||
},
|
||||
onSuccess: function(data, json, xhr){
|
||||
|
|
|
|||
Loading…
Reference in a new issue