Commit 11c7fe3b authored by Chenu Denis's avatar Chenu Denis
Browse files

[feature] 5.X version

parent b0a774f4
$(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');
});
});
$(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');
});
});
......@@ -4,16 +4,17 @@
<name>surveyChaining</name>
<type>plugin</type>
<creationDate>2018-04-03</creationDate>
<lastUpdate>2022-02-07</lastUpdate>
<lastUpdate>2022-09-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>
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment