Commit fbc444ec authored by Ivan Tyagov's avatar Ivan Tyagov

Not required any longer use MochiKit.

When Anonymous User wants to interact with a gadget (i.e. change listbox) it's now possible and not required to stop him with an alert message.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42410 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b938405f
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#\n #\n
# BBB: For the history, erp5_xhtml_appearance.js is included by default when\n # BBB: For the history, erp5_xhtml_appearance.js is included by default when\n
# js_list is not pre-defined before the global definitions.\n # js_list is not pre-defined before the global definitions.\n
js_list = (\'MochiKit/MochiKit.js\',\'jquery/core/jquery.js\', \'jquery/ui/js/jquery-ui.js\', \'erp5.js\', \'erp5_knowledge_box.js\',)\n js_list = (\'jquery/core/jquery.js\', \'jquery/ui/js/jquery-ui.js\', \'erp5.js\', \'erp5_knowledge_box.js\',)\n
return js_list\n return js_list\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -51,10 +51,11 @@ ...@@ -51,10 +51,11 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>if not ignore_security_check:\n <value> <string>if not ignore_security_check:\n
if context.portal_membership.isAnonymousUser():\n pass\n
# anonymous user is not allowed to use AJAX gadgets\n #if context.portal_membership.isAnonymousUser():\n
return """alert("%s");""" %context.Base_translateString(\n # # anonymous user is not allowed to use AJAX gadgets\n
"This function is available only for logged in users!")\n # return """alert("%s");""" %context.Base_translateString(\n
# "This function is available only for logged in users!")\n
\n \n
# pass current_web_section (if available so we can send it to server in next\n # pass current_web_section (if available so we can send it to server in next\n
# asynchronous request and server can set it in context.REQUEST\n # asynchronous request and server can set it in context.REQUEST\n
......
674 676
\ No newline at end of file \ 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