From a3c287ca9a75126c2de6d3d108e7a312906a5853 Mon Sep 17 00:00:00 2001 From: MrZYX Date: Wed, 18 May 2011 14:26:08 +0200 Subject: [PATCH] fixed #1023 (again) --- public/javascripts/publisher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/javascripts/publisher.js b/public/javascripts/publisher.js index 29176218f..bcd2df09b 100644 --- a/public/javascripts/publisher.js +++ b/public/javascripts/publisher.js @@ -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){