25 lines
745 B
JavaScript
25 lines
745 B
JavaScript
|
|
$(document).on('click touch', '.action-fields-report-sequence-data-span', function() {
|
|
var value = $(this).html();
|
|
var rnum = $(this).attr('rnum');
|
|
var spanid = $(this).attr('id');
|
|
|
|
value = Math.abs(value) + 1;
|
|
if (value > 9) value = 0;
|
|
|
|
$.ajax({
|
|
url: 'ajax.UpdateDBField.php',
|
|
data: {
|
|
table_name: '_form_fields',
|
|
field_name: 'action_fields_report_sequence',
|
|
field_value: value,
|
|
field_type: 'numeric',
|
|
record_num: rnum
|
|
},
|
|
dataType: "json"
|
|
}).done(function(results) {
|
|
$('#'+spanid).html(value);
|
|
});
|
|
});
|
|
|