First Commit

This commit is contained in:
mark committed 2026-10-19 15:22:52 -07:00
1 parent 5eb9dd037d
commit 2e62c0e60b
11877 files changed
+2035312

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
$(document).on('click touch', '.default-price-category-data-span', function(e) {
e.preventDefault();
var value = $(this).html();
var rnum = $(this).attr('rnum');
var fid = 'default-price-category-'+rnum;
switch (value) {
case 'Regular':
value = 'Special 1';
break;
case 'Special 1':
value = 'Special 2';
break;
case 'Special 2':
value = 'Special 3';
break;
case 'Special 3':
value = 'Regular';
break;
}
$.ajax({
url: 'ajax.UpdateDBField.php',
data: {
table_name: 'classes',
field_name: 'default_price_category',
field_value: value,
field_type: 'text',
record_num: rnum
},
dataType: 'json'
}).done(function(results) {
$("#"+fid).html(value);
});
});