Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rozsival authored and paveljanda committed Nov 17, 2020
1 parent b9fa4dc commit 4b136a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/datagrid-spinners.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var dataGridRegisterExtension;

if (typeof naja !== "undefined") {
var isNaja2 = function () { return naja.version >= 2 };
var isNaja2 = function () { return naja && naja.VERSION && naja.VERSION >= 2 };
dataGridRegisterExtension = function (name, extension) {
var init = extension.init;
var success = extension.success;
Expand Down Expand Up @@ -38,7 +38,7 @@ if (typeof naja !== "undefined") {
});
}
}
if (!naja.version || !isNaja2()) {
if (!isNaja2()) {
this.initialize(naja);
}
return this;
Expand Down
4 changes: 2 additions & 2 deletions assets/datagrid.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var dataGridRegisterExtension, dataGridRegisterAjaxCall, dataGridLoad, dataGridSubmitForm;

if (typeof naja !== "undefined") {
var isNaja2 = function () { return naja.version >= 2 };
var isNaja2 = function () { return naja && naja.VERSION && naja.VERSION >= 2 };
dataGridRegisterExtension = function (name, extension) {
var init = extension.init;
var success = extension.success;
Expand Down Expand Up @@ -56,7 +56,7 @@ if (typeof naja !== "undefined") {
});
}
}
if (!naja.version || !isNaja2()) {
if (!isNaja2()) {
this.initialize(naja);
}
return this;
Expand Down

0 comments on commit 4b136a9

Please sign in to comment.