|
@@ -1509,56 +1509,48 @@
|
|
|
return false;
|
|
|
});
|
|
|
$('#audit-check0').submit(function (e) {
|
|
|
- if (auditCheck(0)) {
|
|
|
- $(this).parent().parent().modal('hide');
|
|
|
- const data = {
|
|
|
- opinion: $('[name=opinion]', this).val(),
|
|
|
- checkType: parseInt($('[name=checkType]', this).val()),
|
|
|
- };
|
|
|
- dataChecker.checkAndPost(this.action, data);
|
|
|
- $('#hide-all').hide();
|
|
|
- }
|
|
|
+ $(this).parent().parent().modal('hide');
|
|
|
+ const data = {
|
|
|
+ opinion: $('[name=opinion]', this).val().replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/\s/g, ' '),
|
|
|
+ checkType: parseInt($('[name=checkType]', this).val()),
|
|
|
+ };
|
|
|
+ dataChecker.checkAndPost(this.action, data);
|
|
|
+ $('#hide-all').hide();
|
|
|
return false;
|
|
|
});
|
|
|
$('#audit-check2').submit(function (e) {
|
|
|
- if (auditCheck(2)) {
|
|
|
- $(this).parent().parent().modal('hide');
|
|
|
- const data = {
|
|
|
- opinion: $('[name=opinion]', this).val(),
|
|
|
- checkType: parseInt($('[name=checkType]', this).val()),
|
|
|
- };
|
|
|
- dataChecker.checkAndPost(this.action, data);
|
|
|
- $('#hide-all').hide();
|
|
|
- }
|
|
|
+ $(this).parent().parent().modal('hide');
|
|
|
+ const data = {
|
|
|
+ opinion: $('[name=opinion]', this).val().replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/\s/g, ' '),
|
|
|
+ checkType: parseInt($('[name=checkType]', this).val()),
|
|
|
+ };
|
|
|
+ dataChecker.checkAndPost(this.action, data);
|
|
|
+ $('#hide-all').hide();
|
|
|
return false;
|
|
|
});
|
|
|
<% } %>
|
|
|
$('#audit-check1').submit(function (e) {
|
|
|
- if (auditCheck(1)) {
|
|
|
- $(this).parent().parent().modal('hide');
|
|
|
- const data = {
|
|
|
- opinion: $('[name=opinion]', this).val(),
|
|
|
- checkType: parseInt($('[name=checkType]:checked', this).val()),
|
|
|
- };
|
|
|
- postData(this.action, data, function () {
|
|
|
- window.location.reload();
|
|
|
- });
|
|
|
- $('#hide-all').hide();
|
|
|
- }
|
|
|
+ $(this).parent().parent().modal('hide');
|
|
|
+ const data = {
|
|
|
+ opinion: $('[name=opinion]', this).val().replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/\s/g, ' '),
|
|
|
+ checkType: parseInt($('[name=checkType]:checked', this).val()),
|
|
|
+ };
|
|
|
+ postData(this.action, data, function () {
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
+ $('#hide-all').hide();
|
|
|
return false;
|
|
|
});
|
|
|
$('#audit-check3').submit(function (e) {
|
|
|
- if (auditCheck(3)) {
|
|
|
- $(this).parent().parent().modal('hide');
|
|
|
- const data = {
|
|
|
- opinion: $('[name=opinion]', this).val(),
|
|
|
- checkType: parseInt($('[name=checkType]:checked', this).val()),
|
|
|
- };
|
|
|
- postData(this.action, data, function () {
|
|
|
- window.location.reload();
|
|
|
- });
|
|
|
- $('#hide-all').hide();
|
|
|
- }
|
|
|
+ $(this).parent().parent().modal('hide');
|
|
|
+ const data = {
|
|
|
+ opinion: $('[name=opinion]', this).val().replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/\s/g, ' '),
|
|
|
+ checkType: parseInt($('[name=checkType]:checked', this).val()),
|
|
|
+ };
|
|
|
+ postData(this.action, data, function () {
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
+ $('#hide-all').hide();
|
|
|
return false;
|
|
|
});
|
|
|
</script>
|