diff --git a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/KnowledgePad_generateAjaxCall.xml b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/KnowledgePad_generateAjaxCall.xml index 7463fb446fb71dd1ff337e1203d1a8259f8ebdf3..efe57a1669cef6acf99ae33df41908ced4e6dc41 100644 --- a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/KnowledgePad_generateAjaxCall.xml +++ b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/KnowledgePad_generateAjaxCall.xml @@ -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 diff --git a/bt5/erp5_knowledge_pad/bt/revision b/bt5/erp5_knowledge_pad/bt/revision index 89395971e9853143546b02e46e9668a159e77187..0dde6d352b78f94c8f3ab0379493762b666a484a 100644 --- a/bt5/erp5_knowledge_pad/bt/revision +++ b/bt5/erp5_knowledge_pad/bt/revision @@ -1 +1 @@ -693 \ No newline at end of file +694 \ No newline at end of file