Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
f439c001
Commit
f439c001
authored
Oct 01, 2011
by
stef
Browse files
[fix] for #12 for non-dev django
parent
888aef55
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/view.html
View file @
f439c001
...
...
@@ -23,12 +23,11 @@ function bindPostCommentHandler() {
cache
:
false
,
dataType
:
"
html
"
,
success
:
function
(
html
,
textStatus
)
{
$
(
'
#comment_form form
'
).
replaceWith
(
html
+
"
"
+
"
{% trans
"
It
will
appear
here
after
moderation
.
"
%}
"
);
$
(
'
#comment_form form
'
).
replaceWith
(
html
+
"
"
+
"
{% trans
'
It will appear here after moderation.
'
%}
"
);
bindPostCommentHandler
();
},
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
{
%
trans
"
Your comment was unable to be posted at this time. We apologise for the inconvenience.
"
as
msg
%
}
$
(
'
#comment_form form
'
).
replaceWith
(
'
{{msg|addslashes}}
'
);
$
(
'
#comment_form form
'
).
replaceWith
(
"
{% trans 'Your comment was unable to be posted at this time. We apologise for the inconvenience.' %}
"
);
}
});
return
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment