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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
57354f01
Commit
57354f01
authored
Mar 13, 2018
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: fix textarea notify change after saving by pressing key error
parent
f7d81aa8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_textarea_js.js
...plateItem/web_page_module/rjs_gadget_html5_textarea_js.js
+9
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_textarea_js.xml
...lateItem/web_page_module/rjs_gadget_html5_textarea_js.xml
+3
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_textarea_js.js
View file @
57354f01
...
...
@@ -96,8 +96,17 @@
.
declareAcquiredMethod
(
"
notifySubmit
"
,
"
notifySubmit
"
)
.
onEvent
(
'
keydown
'
,
function
(
evt
)
{
var
textarea
=
this
.
element
.
querySelector
(
'
textarea
'
);
if
(
evt
.
keyCode
===
83
&&
(
navigator
.
platform
.
match
(
"
Mac
"
)
?
evt
.
metaKey
:
evt
.
ctrlKey
))
{
//Textarea's change event is generally launched by browser when press a predefined key
//Call preventDefault prevent change event
evt
.
preventDefault
();
//When lose focus, change event is launched
//Without this, after saving, then click other fields or go to other view
//Change event will be trigged and there will have a unsaved warning for textarea
textarea
.
blur
();
//Refocus for consistency
textarea
.
focus
();
return
this
.
notifySubmit
();
}
},
false
,
false
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_textarea_js.xml
View file @
57354f01
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
3.62583.15371.20411
</string>
</value>
<value>
<string>
96
6.9555.11713.4232
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,8 +254,8 @@
</tuple>
<state>
<tuple>
<float>
15
12575560.52
</float>
<string>
UTC
</string>
<float>
15
20933309.18
</float>
<string>
GMT+1
</string>
</tuple>
</state>
</object>
...
...
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