mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-02-18 14:48:42 -05:00
Check first if type parameter exists (#1990)
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
$.ajax = function() {
|
||||
var args = arguments[0];
|
||||
|
||||
if (args['type'].toLowerCase() == 'post' && csrf_token()) {
|
||||
if (args['type'] && args['type'].toLowerCase() == 'post' && csrf_token()) {
|
||||
if (typeof args['data'] === 'string')
|
||||
{
|
||||
args['data'] += $.param(csrf_form_base());
|
||||
|
||||
Reference in New Issue
Block a user