L
Size: a a a
GC
L
GC
L
GC
GC
L
GC
KB
function callRequest(params, action) {
jQuery.ajax({
url: "managetagsajax.admin?" + params,
dataType: "json"
}).done(function(response) {
if (response.status == "success") {
toastr.success('<spring:message code="jsp.edititemtags.success"/>', response.message);
} else if (response.status == "fail") {
toastr.error('<spring:message code="jsp.edititemtags.error"/>', response.message);
}
if (action == actions.get_all) {
tagsData = response;
renderTags();
} else if (action == actions.add_default) {
loadTags();
} else if (action == actions.add_custom) {
loadTags();
} else if (action == actions.delete_default) {
loadTags();
} else if (action == actions.delete_custom) {
loadTags();
} else if (action == actions.edit_default) {
loadTags();
} else if (action == actions.edit_custom) {
loadTags();
}else if (action == actions.select_default) {
loadTags();
} else if (action == actions.select_custom) {
loadTags();
}
console.log(response);
});
}KB
jQuery.ajax({
url: "managetagsajax.admin?" + params,
dataType: "json"
}).done(function(response) {.
KB
KB
KB