Commit fbca31c6 authored by Gabriel Monnerat's avatar Gabriel Monnerat

rename function

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45341 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a36c868e
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <unicode encoding="cdata"><![CDATA[ <value> <unicode encoding="cdata"><![CDATA[
<form id="create_new_event" action="javascript:createNewEvent()">\n <form id="create_new_event" onkeypress="submitEventOnEvent(event)">\n
<table>\n <table>\n
<tbody>\n <tbody>\n
<tr>\n <tr>\n
......
...@@ -131,6 +131,19 @@ function Delete(data, callback){\n ...@@ -131,6 +131,19 @@ function Delete(data, callback){\n
hiConfirm("Are You Sure to Delete this Event", \'Confirm\', function(r){ r && callback(0);});\n hiConfirm("Are You Sure to Delete this Event", \'Confirm\', function(r){ r && callback(0);});\n
}\n }\n
\n \n
function submitEventOnEvent(event){\n
var keynum;\n
if(window.event){\n
keynum = event.keyCode;\n
}\n
else if(event.which){\n
keynum = event.which;\n
}\n
if (keynum == 13){\n
createNewEvent();\n
} \n
}\n
\n
function createNewEvent(){\n function createNewEvent(){\n
$.post("EventModule_createNewEvent",\n $.post("EventModule_createNewEvent",\n
$("form#create_new_event").serialize(), function(){\n $("form#create_new_event").serialize(), function(){\n
......
350 351
\ 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