Commit 6b546fb6 authored by Ivan Tyagov's avatar Ivan Tyagov

Remove dirty hack that may hide other dirty parts of code.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43379 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 596cd814
......@@ -60,12 +60,11 @@ else:\n
box_relative_url = box\n
\n
editable_mode = context.REQUEST.get(\'editable_mode\', 0)\n
# dirty hack to make sure that we catch all possible ways \n
# of setting editable mode in REQUEST\n
if editable_mode in (\'True\', True, 1):\n
if editable_mode:\n
editable_mode = 1\n
else:\n
editable_mode = 0\n
\n
js_update_code = """updater(\'%s\', \'%s\', \'%s\', \'%s\', %s);""" %(url, box_relative_url, dom_id, \n
editable_mode, encodeInJson(params))\n
if box.getValidationState()==\'invisible\':\n
......
693
\ No newline at end of file
694
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment