First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,21 @@
|
||||
|
||||
$(document).on("click", ".is-default", function() {
|
||||
var value = $(this).html();
|
||||
var new_value = 'Y';
|
||||
var rnum = $(this).attr('rnum');
|
||||
var spanID = $(this);
|
||||
|
||||
if (value == 'Y') new_value = 'N';
|
||||
|
||||
var data = "table_name=staff_categories"+
|
||||
"&sequence_flag=N"+
|
||||
"&record_num="+rnum+
|
||||
"&is_default="+new_value;
|
||||
|
||||
$.getJSON("ajax.DataRecord.Update.php", data,
|
||||
function(results) {
|
||||
$(spanID).html(new_value);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user