projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
72b8caf
)
Retrait du nettoyage automatique de html : encore une lubie de geek…
author
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 9 Oct 2014 11:58:57 +0000
(13:58 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 9 Oct 2014 11:58:57 +0000
(13:58 +0200)
skins/custom_content/document_edit_form.py
patch
|
blob
|
history
diff --git
a/skins/custom_content/document_edit_form.py
b/skins/custom_content/document_edit_form.py
index
8dffe34
..
c23a9a3
100644
(file)
--- a/
skins/custom_content/document_edit_form.py
+++ b/
skins/custom_content/document_edit_form.py
@@
-11,15
+11,7
@@
if text and same_type(text, []) :
# and an other from <noscript> tag
form.update({'text' : text[1]})
# and an other from <noscript> tag
form.update({'text' : text[1]})
-if change and \
- context.validateTextFile(**form) and \
- context.validateHTML(**form) and \
- context.document_edit_control(text=form.get('text'), text_format='html') and \
- context.setRedirect(context, 'object/edit', **{'ajax':ajax}):
- return
-elif change_and_view and \
- context.validateTextFile(**form) and \
- context.validateHTML(**form) and \
+if change_and_view and \
context.document_edit_control(text=form.get('text'), text_format='html') :
attachments.removeUnusedAttachments(context.EditableBody())
return context.setRedirect(context, 'object/view', **{'ajax':ajax})
context.document_edit_control(text=form.get('text'), text_format='html') :
attachments.removeUnusedAttachments(context.EditableBody())
return context.setRedirect(context, 'object/view', **{'ajax':ajax})