Redirect Url Desire to turn off feature

teddy
teddy
  • teddy
  • 13 months ago
Hi Mav

I desire to turn off the Redirect Url feature inside of the survey -- as I do not want users to be able to redirect off site or to bad sites.

I see the code in templates/default/scripts/corejoomla.surveys.min.js starting at approximately line 308:
		$("#btn_create_urls").button().bind("click",function() {
$.ajax( {
url : $(this).attr("href"),
data : {
"id" : $("#sid").val(),
"count" : $("#urlcount").val()
},
type : "POST",
dataType : "json",
success : function(data) {
if (typeof data.error != "undefined" && data.error.length > 0) {
$("<div>",{"title" : $("#txt_error").html()}).html(data.error).dialog({
modal : true,
buttons : {
Ok : function() {
$(this).dialog("close");
}
}
});
} else {
if (typeof data.urls != "undefined") {
for ( var i = 0; i < data.urls.length; i++) {
$(".urls-box").append($("<div>").html(data.urls));
}
}
}
$("#progress-confirm").hide();
}
});
return false;
});

$("#btn_add_group").button().click(function() {
var send_url = $(this).attr("href");
var lbl_submit = $("#lbl_submit").html();
var lbl_cancel = $("#lbl_cancel").html();
var buttonOpts = {};
buttonOpts[lbl_cancel] = function() {
$("#progress-confirm").hide();
$(this).dialog("close");
};
buttonOpts[lbl_submit] = function() {
$("#frm_add_contact_group").submit();
};
$("#frm_add_contact_group").dialog( {
resizable : false,
height : "auto",
width : 300,
modal : true,
buttons : buttonOpts
});
return false;
});


Can you tell me how to disable this feature - All I really need to do is comment out - but I am not sure how in js.

Please advise.

Peace

Access to viewing replies is restricted.
Showing 4 of 4 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai