Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
bd9c5836
Commit
bd9c5836
authored
Jan 16, 2020
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_xhtml_style: Move main form's onsubmit handler to javascript file.
One inline javascript snippet less.
parent
56ccb491
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.js
...SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.js
+3
-0
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.zpt
...rtal_skins/erp5_xhtml_style/template_erp5_xhtml_style.zpt
+0
-1
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.js
View file @
bd9c5836
...
...
@@ -229,6 +229,9 @@ var addOnChangeEventHandler = function() {
- clicking a relation field wheel
- clicking on a input with type submit
*/
$
(
"
#main_form
"
).
each
(
function
(
i
)
{
$
(
this
).
submit
(
function
()
{
changed
=
false
;
return
true
;});
});
$
(
"
#master div
"
).
each
(
function
(
i
)
{
if
(
$
(
this
).
attr
(
"
class
"
)
==
"
input
"
)
{
$
(
this
).
children
().
each
(
function
()
{
...
...
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.zpt
View file @
bd9c5836
...
...
@@ -31,7 +31,6 @@ DEPRECATION:
<body
tal:attributes=
"class body_css_class|nothing; dir language_direction;"
>
<form
id=
"main_form"
class=
"main_form"
onsubmit=
"changed=false; return true"
tal:attributes=
"enctype enctype | form/Form_getEnctype | nothing;
action url;
method python:str(path('form/method | string:post')).lower()"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment