Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
1fbab1b8
Commit
1fbab1b8
authored
8 years ago
by
Côme Chilliet
Committed by
Mortier Benoit
8 years ago
Browse files
Options
Download
Patches
Plain Diff
Javascript fixes
parent
a0c5d9a6
dev
6342-update-the-locales-for-1-5
6344-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen
6365-core-locking-mechanism-is-not-changing-the-mail-ressource-it-does-lock-the-mail-account
6365-core-when-lock-mechanism-is-trigger-the-user-should-not-be-editable-if-not-unlock
6378-orcid-test-method-is-wrong-and-break-orcid-saving
core-php8
master
fusiondirectory-1.5
fusiondirectory-1.4
fusiondirectory-1.3.1
fusiondirectory-1.3
fusiondirectory-1.2.3
fusiondirectory-1.2.2
fusiondirectory-1.2.1
fusiondirectory-1.2
fusiondirectory-1.1.1
fusiondirectory-1.1
fusiondirectory-1.0.20
fusiondirectory-1.0.19
fusiondirectory-1.0.18
fusiondirectory-1.0.17
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
html/include/fusiondirectory.js
+34
-41
html/include/fusiondirectory.js
with
34 additions
and
41 deletions
+34
-41
html/include/fusiondirectory.js
+
34
−
41
View file @
1fbab1b8
...
...
@@ -37,10 +37,8 @@ function chk_set_all_by_class(regex,value)
{
for
(
var
i
=
0
;
i
<
document
.
mainform
.
elements
.
length
;
i
++
)
{
var
_class
=
document
.
mainform
.
elements
[
i
].
getAttribute
(
"
class
"
);
if
(
_class
)
{
if
(
_class
.
match
(
regex
))
{
document
.
mainform
.
elements
[
i
].
checked
=
value
;
}
if
(
_class
&&
_class
.
match
(
regex
))
{
document
.
mainform
.
elements
[
i
].
checked
=
value
;
}
}
}
...
...
@@ -271,47 +269,42 @@ function move_div_by_cursor(e)
var
dialog
;
if
((
enable_move_div_by_cursor
!==
undefined
)
&&
(
enable_move_div_by_cursor
===
true
))
{
if
(
document
.
getElementById
(
'
current_msg_dialogs
'
))
{
/* Get mouse position on screen
*/
if
(
window
.
event
)
{
event
=
window
.
event
;
mouse_pos_x
=
event
.
clientX
;
mouse_pos_y
=
event
.
clientY
;
}
else
if
(
e
)
{
event
=
e
;
mouse_pos_x
=
event
.
screenX
;
mouse_pos_y
=
event
.
screenY
;
}
else
{
return
;
}
/* Get id of current msg_dialog */
cur_id
=
document
.
getElementById
(
'
current_msg_dialogs
'
).
value
;
if
(
cur_id
!==
""
)
{
dialog
=
document
.
getElementById
(
'
e_layer
'
+
cur_id
);
if
((
enable_move_div_by_cursor
===
true
)
&&
document
.
getElementById
(
'
current_msg_dialogs
'
))
{
/* Get mouse position on screen */
if
(
window
.
event
)
{
event
=
window
.
event
;
mouse_pos_x
=
event
.
clientX
;
mouse_pos_y
=
event
.
clientY
;
}
else
if
(
e
)
{
event
=
e
;
mouse_pos_x
=
event
.
screenX
;
mouse_pos_y
=
event
.
screenY
;
}
else
{
return
;
}
/* Calculate new position */
cur_div_x
=
mouse_pos_x
-
div_offset_x
;
cur_div_y
=
mouse_pos_y
-
div_offset_y
;
/* Get id of current msg_dialog */
cur_id
=
document
.
getElementById
(
'
current_msg_dialogs
'
).
value
;
if
(
cur_id
!==
""
)
{
dialog
=
document
.
getElementById
(
'
e_layer
'
+
cur_id
);
/* Ensure that dialog can't be moved out of screen */
if
(
cur_div_x
<
0
)
{
cur_div_x
=
0
;
}
if
(
cur_div_y
<
0
)
{
cur_div_y
=
0
;
}
/* Calculate new position */
cur_div_x
=
mouse_pos_x
-
div_offset_x
;
cur_div_y
=
mouse_pos_y
-
div_offset_y
;
/* Assign new values */
dialog
.
style
.
left
=
(
cur_div_x
)
+
"
px
"
;
dialog
.
style
.
top
=
(
cur_div_y
)
+
"
px
"
;
dialog
.
style
.
margin
=
"
0
"
;
dialog
.
style
.
position
=
"
absolute
"
;
/* Ensure that dialog can't be moved out of screen */
if
(
cur_div_x
<
0
)
{
cur_div_x
=
0
;
}
if
(
cur_div_y
<
0
)
{
cur_div_y
=
0
;
}
/* Assign new values */
dialog
.
style
.
left
=
(
cur_div_x
)
+
"
px
"
;
dialog
.
style
.
top
=
(
cur_div_y
)
+
"
px
"
;
dialog
.
style
.
margin
=
"
0
"
;
dialog
.
style
.
position
=
"
absolute
"
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets