Skip to content

Commit

Permalink
fixed undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Nov 14, 2019
1 parent 03b5f26 commit 051b893
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/datagrid-instant-url-refresh.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var dataGridRegisterAjaxCall;

if (naja) {
if (typeof naja !== "undefined") {
dataGridRegisterAjaxCall = function (params) {
var method = params.type || 'GET';
var data = params.data || null;
Expand Down
2 changes: 1 addition & 1 deletion assets/datagrid-spinners.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var dataGridRegisterExtension;

if (naja) {
if (typeof naja !== "undefined") {
dataGridRegisterExtension = function (name, extension) {
var init = extension.init;
var success = extension.success;
Expand Down
2 changes: 1 addition & 1 deletion assets/datagrid.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var dataGridRegisterExtension, dataGridRegisterAjaxCall, dataGridLoad;

if (naja) {
if (typeof naja !== "undefined") {
dataGridRegisterExtension = function (name, extension) {
var init = extension.init;
var success = extension.success;
Expand Down

0 comments on commit 051b893

Please sign in to comment.