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
fe1ca4d2
Commit
fe1ca4d2
authored
8 years ago
by
Côme Chilliet
Committed by
Mortier Benoit
8 years ago
Browse files
Options
Download
Patches
Plain Diff
Removed a few unused method from fusiondirectory.js
parent
c7e52d25
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
fusiondirectory-1.0.16
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
html/include/fusiondirectory.js
+1
-99
html/include/fusiondirectory.js
with
1 addition
and
99 deletions
+1
-99
html/include/fusiondirectory.js
+
1
−
99
View file @
fe1ca4d2
/*
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2003-2010 Cajus Pollmeier
Copyright (C) 2003-2010 Cajus Pollmeier
Copyright (C) 2011 FusionDirectory
Copyright (C) 2011
-2016
FusionDirectory
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
@@ -23,20 +23,6 @@ Event.observe(window, 'resize', resizeHandler);
...
@@ -23,20 +23,6 @@ Event.observe(window, 'resize', resizeHandler);
Event
.
observe
(
window
,
'
load
'
,
resizeHandler
);
Event
.
observe
(
window
,
'
load
'
,
resizeHandler
);
Event
.
observe
(
window
,
'
load
'
,
initProgressPie
);
Event
.
observe
(
window
,
'
load
'
,
initProgressPie
);
/* Ask before switching a plugin with this function */
function
question
(
text
,
url
)
{
if
(
document
.
mainform
.
ignore
){
location
.
href
=
url
;
return
true
;
}
if
(
confirm
(
text
)){
location
.
href
=
url
;
return
true
;
}
return
false
;
}
/* Toggle checkbox that matches regex */
/* Toggle checkbox that matches regex */
function
chk_set_all
(
regex
,
value
)
function
chk_set_all
(
regex
,
value
)
...
@@ -119,94 +105,10 @@ function changeState() {
...
@@ -119,94 +105,10 @@ function changeState() {
}
}
}
}
function
changeSelectState
(
triggerField
,
myField
)
{
if
(
document
.
getElementById
(
triggerField
).
value
!=
2
){
document
.
getElementById
(
myField
).
disabled
=
true
;
}
else
{
document
.
getElementById
(
myField
).
disabled
=
false
;
}
}
function
changeSubselectState
(
triggerField
,
myField
)
{
if
(
document
.
getElementById
(
triggerField
).
checked
==
true
){
document
.
getElementById
(
myField
).
disabled
=
false
;
}
else
{
document
.
getElementById
(
myField
).
disabled
=
true
;
}
}
function
changeTripleSelectState
(
firstTriggerField
,
secondTriggerField
,
myField
)
{
if
(
document
.
getElementById
(
firstTriggerField
).
checked
==
true
&&
document
.
getElementById
(
secondTriggerField
).
checked
==
true
){
document
.
getElementById
(
myField
).
disabled
=
false
;
}
else
{
document
.
getElementById
(
myField
).
disabled
=
true
;
}
}
<!--
Second
field
must
be
non
-
checked
-->
function
changeTripleSelectState_2nd_neg
(
firstTriggerField
,
secondTriggerField
,
myField
)
{
if
(
document
.
getElementById
(
firstTriggerField
).
checked
==
true
&&
document
.
getElementById
(
secondTriggerField
).
checked
==
false
){
document
.
getElementById
(
myField
).
disabled
=
false
;
}
else
{
document
.
getElementById
(
myField
).
disabled
=
true
;
}
}
function
popup
(
target
,
name
)
{
var
mypopup
=
window
.
open
(
target
,
name
,
"
width=600,height=700,location=no,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes
"
);
mypopup
.
focus
();
return
false
;
}
function
js_check
(
form
)
{
function
js_check
(
form
)
{
form
.
javascript
.
value
=
'
true
'
;
form
.
javascript
.
value
=
'
true
'
;
}
}
function
divGOsa_toggle
(
element
)
{
var
cell
;
var
cellname
=
"
tr_
"
+
(
element
);
if
(
Prototype
.
Browser
.
Gecko
)
{
document
.
poppedLayer
=
document
.
getElementById
(
element
);
cell
=
document
.
getElementById
(
cellname
);
if
(
document
.
poppedLayer
.
style
.
visibility
==
"
visible
"
)
{
$
(
element
).
hide
();
cell
.
style
.
height
=
"
0px
"
;
document
.
poppedLayer
.
style
.
height
=
"
0px
"
;
}
else
{
$
(
element
).
show
();
document
.
poppedLayer
.
style
.
height
=
""
;
if
(
document
.
defaultView
)
{
cell
.
style
.
height
=
document
.
defaultView
.
getComputedStyle
(
document
.
poppedLayer
,
""
).
getPropertyValue
(
'
height
'
);
}
}
}
else
if
(
Prototype
.
Browser
.
IE
)
{
document
.
poppedLayer
=
document
.
getElementById
(
element
);
cell
=
document
.
getElementById
(
cellname
);
if
(
document
.
poppedLayer
.
style
.
visibility
==
"
visible
"
)
{
$
(
element
).
hide
();
cell
.
style
.
height
=
"
0px
"
;
document
.
poppedLayer
.
style
.
height
=
"
0px
"
;
document
.
poppedLayer
.
style
.
position
=
"
absolute
"
;
}
else
{
$
(
element
).
show
();
cell
.
style
.
height
=
""
;
document
.
poppedLayer
.
style
.
height
=
""
;
document
.
poppedLayer
.
style
.
position
=
"
relative
"
;
}
}
}
function
resizeHandler
(
e
)
{
function
resizeHandler
(
e
)
{
if
(
!
e
)
e
=
window
.
event
;
if
(
!
e
)
e
=
window
.
event
;
if
(
document
.
getElementById
(
"
menucell
"
)
&&
document
.
getElementById
(
"
d_scrollbody
"
))
{
if
(
document
.
getElementById
(
"
menucell
"
)
&&
document
.
getElementById
(
"
d_scrollbody
"
))
{
...
...
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