Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Christian Cruz Garrido
vtigercrm
Commits
a5d315d6
Commit
a5d315d6
authored
Aug 6, 2020
by
Uma
Browse files
Options
Downloads
Patches
Plain Diff
showModal and showPopup one time registration is removed
parent
e33f9c80
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
layouts/v7/resources/helper.js
+3
-16
3 additions, 16 deletions
layouts/v7/resources/helper.js
with
3 additions
and
16 deletions
layouts/v7/resources/helper.js
+
3
−
16
View file @
a5d315d6
...
...
@@ -446,7 +446,7 @@ jQuery.Class("Vtiger_Helper_Js",{
var
cb
=
params
.
cb
;
var
container
=
jQuery
(
'
.myModal
'
);
container
.
on
e
(
'
hidden.bs.modal
'
,
function
()
{
container
.
on
(
'
hidden.bs.modal
'
,
function
()
{
container
.
html
(
''
);
window
.
onbeforeunload
=
null
;
});
...
...
@@ -794,12 +794,6 @@ jQuery.Class("Vtiger_Helper_Js",{
params
=
{};
}
// we should hide all existing modal's
var
hideModals
=
(
typeof
params
.
hideModals
!==
'
undefined
'
)
?
params
.
hideModals
:
true
;
if
(
hideModals
)
{
this
.
hideModal
();
}
var
defaultParams
=
app
.
helper
.
defaultModalParams
();
params
=
jQuery
.
extend
(
defaultParams
,
params
);
...
...
@@ -808,14 +802,7 @@ jQuery.Class("Vtiger_Helper_Js",{
var
container
=
jQuery
(
'
<div id="popupModal" class="modal"></div>
'
);
container
.
on
(
'
hidden.bs.modal
'
,
function
()
{
/**
* if tabindex = -1 then browser will set focus to that element.
* Loading another modal(this has tabindex = -1) on a modal is not moving the focus to new modal.
* We can't remove tabindex from the modals in tpl. So, this is a work around(removing index on show and adding on hide).
*/
jQuery
(
'
#helpPageOverlay
'
).
attr
(
'
tabindex
'
,
'
-1
'
);
container
.
html
(
''
);
window
.
onbeforeunload
=
null
;
container
.
html
(
''
).
remove
();
});
if
(
typeof
cb
===
"
function
"
)
{
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment