Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
co2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Albert Beltran
co2
Commits
92daf525
Commit
92daf525
authored
Jan 23, 2019
by
Tibor Katelbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plein de petite customisation
parent
c990419b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
32 deletions
+4
-32
assets/js/dynForm/proposal.js
assets/js/dynForm/proposal.js
+4
-32
No files found.
assets/js/dynForm/proposal.js
View file @
92daf525
...
...
@@ -202,17 +202,10 @@ dynForm = {
// $("#ajaxFormModal #amendementAndVote").val("false");
// $("#ajaxFormModal .amendementAndVotecheckboxSimple .btn-dyn-checkbox[data-checkval='false']").trigger( "click" );
//$("#ajaxFormModal .amendementDateEnddatetime").show();
if
(
typeof
custom
!=
"
undefined
"
){
if
(
typeof
custom
.
dynForm
!=
"
undefined
"
){
if
(
typeof
custom
.
dynForm
.
proposal
!=
"
undefined
"
&&
typeof
custom
.
dynForm
.
proposal
.
onload
!=
"
undefined
"
&&
typeof
custom
.
dynForm
.
proposal
.
onload
.
actions
!=
"
undefined
"
){
$
.
each
(
custom
.
dynForm
.
proposal
.
onload
.
actions
,
function
(
i
,
f
)
{
if
(
typeof
dyFObj
.
elementObj
.
dynForm
.
jsonSchema
.
actions
[
f
]
==
"
function
"
)
dyFObj
.
elementObj
.
dynForm
.
jsonSchema
.
actions
[
f
]();
})
}
}
}
if
(
typeof
custom
!=
"
undefined
"
&&
typeof
custom
.
dynForm
!=
"
undefined
"
&&
typeof
custom
.
dynForm
.
proposal
!=
"
undefined
"
)
dyFCustom
.
init
(
"
proposal
"
);
}
},
beforeBuild
:
function
(){
...
...
@@ -262,29 +255,8 @@ dynForm = {
$
(
"
.scopescope
"
).
hide
();
},
adminOnly
:
function
()
{
if
(
typeof
custom
!=
"
undefined
"
&&
typeof
custom
.
admins
!=
"
undefined
"
&&
typeof
custom
.
admins
[
userId
]
!=
"
undefined
"
&&
typeof
custom
.
admins
[
userId
].
isAdmin
!=
"
undefined
"
&&
custom
.
admins
[
userId
].
isAdmin
==
true
){
if
(
typeof
custom
.
dynForm
!=
"
undefined
"
){
if
(
typeof
custom
.
dynForm
.
proposal
!=
"
undefined
"
&&
typeof
custom
.
dynForm
.
proposal
.
adminOnly
!=
"
undefined
"
){
$
.
each
(
custom
.
dynForm
.
proposal
.
adminOnly
,
function
(
i
,
p
)
{
$
(
"
.
"
+
p
).
show
();
});
}
}
}
},
setTitle
:
function
()
{
$
(
"
#ajax-modal-modal-title
"
).
html
(
tradDynForm
.
addMeasure
);
},
rename
:
function
()
{
$
.
each
(
custom
.
dynForm
.
proposal
.
onload
.
rename
,
function
(
k
,
v
)
{
$
(
"
.
"
+
k
).
html
(
v
)
});
}
},
afterSave
:
function
(
data
){
...
...
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