Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
What's new
2
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Projects
Groups
Snippets
Register
Sign in
Toggle navigation
Menu
Open sidebar
SondagesPro
SurveyAccess
surveyChaining
Commits
11c7fe3b
Commit
11c7fe3b
authored
Sep 24, 2022
by
Chenu Denis
Browse files
[feature] 5.X version
parent
b0a774f4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
assets/settings.js
View file @
11c7fe3b
$
(
document
).
on
(
'
ready pjax:scriptcomplete
'
,
function
(){
$
(
'
.ajax-surveychaining
'
).
on
(
'
click
'
,
function
(
e
){
var
link
=
$
(
this
);
var
helpblock
=
$
(
this
).
closest
(
'
.help-block
'
);
e
.
preventDefault
();
//console.log($(this).attr("href"));
LS
.
ajax
({
url
:
$
(
this
).
attr
(
"
href
"
)
$
.
ajax
({
url
:
$
(
this
).
attr
(
"
href
"
),
success
:
function
(
result
){
if
(
result
.
success
)
{
$
(
helpblock
).
append
(
'
<p class="text-success">
'
+
result
.
success
+
"
</p>
"
);
$
(
link
).
remove
();
}
else
{
if
(
result
.
error
.
message
)
{
$
(
helpblock
).
append
(
'
<p class="text-danger">
'
+
result
.
error
.
message
+
"
</p>
"
);
}
}
},
error
:
function
(
xhr
,
status
,
error
){
var
errorMessage
=
xhr
.
status
+
'
:
'
+
xhr
.
statusText
$
(
helpblock
).
append
(
'
<div class="alert alert-danger">
'
+
errorMessage
+
"
</div>
"
);
}
});
//~ notifyFader("toto",'well-lg bg-primary text-center');
});
});
assetslegacy3LTS/settings.js
0 → 100644
View file @
11c7fe3b
$
(
document
).
on
(
'
ready pjax:scriptcomplete
'
,
function
(){
$
(
'
.ajax-surveychaining
'
).
on
(
'
click
'
,
function
(
e
){
e
.
preventDefault
();
LS
.
ajax
({
url
:
$
(
this
).
attr
(
"
href
"
)
});
//~ notifyFader("toto",'well-lg bg-primary text-center');
});
});
config.xml
View file @
11c7fe3b
...
...
@@ -4,16 +4,17 @@
<name>
surveyChaining
</name>
<type>
plugin
</type>
<creationDate>
2018-04-03
</creationDate>
<lastUpdate>
2022-0
2-07
</lastUpdate>
<lastUpdate>
2022-0
9-23
</lastUpdate>
<author>
Denis Chenu
</author>
<authorUrl>
https://extensions.sondages.pro/
</authorUrl>
<supportUrl>
https://support.sondages.pro/
</supportUrl>
<version>
1.
0.8
</version>
<version>
1.
1.0
</version>
<license>
GNU Affero General Public License v3.0
</license>
<description>
<![CDATA[Chaining one survey with another one.]]>
</description>
</metadata>
<compatibility>
<version>
2.73
</version>
<version>
3.0
</version>
<version>
5
</version>
</compatibility>
</config>
surveyChaining.php
View file @
11c7fe3b
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!
Cancel
Please
register
or
sign in
to comment