CC-4731: Cannot save support feedback settings
This commit is contained in:
parent
844246df3a
commit
1846f17bbc
3 changed files with 6 additions and 28 deletions
|
@ -11,23 +11,8 @@ function showErrorSections() {
|
|||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setUpEventListeners();
|
||||
});
|
||||
|
||||
function setUpEventListeners() {
|
||||
var form = $("form");
|
||||
|
||||
$("#support_save").click( function() {
|
||||
var data = $("#support-feedback-form").serializeArray();
|
||||
var url = baseUrl+'/Preference/support-setting';
|
||||
|
||||
$.post(url, {format:"json", data: data}, function(data){
|
||||
var json = $.parseJSON(data);
|
||||
$("#support-feedback-view").parent().empty().append(json.html);
|
||||
setUpEventListeners();
|
||||
});
|
||||
});
|
||||
|
||||
$("#SupportFeedback").click( function(){
|
||||
var pub = $("#Publicise");
|
||||
if( !$(this).is(':checked') ){
|
||||
|
@ -96,4 +81,4 @@ function setUpEventListeners() {
|
|||
logoEl.find(".errors").remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue