Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
afd5a3cf
Commit
afd5a3cf
authored
Jan 09, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove focus (of inputs) when switching tabs (window.onblur)
parent
81ef4b34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
js/erp5_loader.js
js/erp5_loader.js
+8
-2
No files found.
js/erp5_loader.js
View file @
afd5a3cf
...
@@ -4995,8 +4995,7 @@
...
@@ -4995,8 +4995,7 @@
if
(
type
===
"
click
"
&&
e
.
target
.
getAttribute
(
"
data-rel
"
)
===
null
)
{
if
(
type
===
"
click
"
&&
e
.
target
.
getAttribute
(
"
data-rel
"
)
===
null
)
{
e
.
preventDefault
();
e
.
preventDefault
();
if
(
type
===
"
click
"
&&
(
tag
===
"
SELECT
"
||
if
(
type
===
"
click
"
&&
(
tag
===
"
SELECT
"
||
(
tag
===
"
INPUT
"
&&
e
.
target
.
type
!==
"
submit
"
))
||
(
tag
===
"
INPUT
"
&&
e
.
target
.
type
!==
"
submit
"
)))
{
(
type
===
"
keyup
"
&&
e
.
target
.
type
===
"
submit
"
))
{
return
;
return
;
}
}
}
}
...
@@ -6213,6 +6212,7 @@
...
@@ -6213,6 +6212,7 @@
*/
*/
//TODO: merge with pagebindings, so all jQuery is at one place!
//TODO: merge with pagebindings, so all jQuery is at one place!
app
.
setGlobalBindings
=
function
()
{
app
.
setGlobalBindings
=
function
()
{
$
(
document
)
$
(
document
)
.
enhanceWithin
()
.
enhanceWithin
()
...
@@ -6276,6 +6276,12 @@
...
@@ -6276,6 +6276,12 @@
.
on
(
"
popupbeforeposition
"
,
function
(
e
)
{
.
on
(
"
popupbeforeposition
"
,
function
(
e
)
{
factory
.
util
.
generatePopupContents
(
app
.
generateActionObject
(
e
));
factory
.
util
.
generatePopupContents
(
app
.
generateActionObject
(
e
));
});
});
// remove focus from active elements on key-tab switches
window
.
onblur
=
function
()
{
document
.
activeElement
.
blur
();
};
};
};
/**
/**
...
...
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