Skip to content

Commit

Permalink
Fix ajax method for small inline edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-janu authored and paveljanda committed Apr 24, 2020
1 parent 76df739 commit 8c99c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (typeof naja !== "undefined") {

dataGridSubmitForm = function (form) {
return naja.uiHandler.submitForm(form.get(0));
};
};
} else if ($.nette) {
dataGridRegisterExtension = function (name, extension) {
$.nette.ext(name, extension);
Expand Down Expand Up @@ -668,7 +668,7 @@ $(document).on('click', '[data-datagrid-editable-url]', function(event) {
data: {
value: value
},
method: 'POST',
type: 'POST',
success: function(payload) {
if (cell.data('datagrid-editable-type') === 'select') {
cell.html(input.find("option[value='" + value + "']").html());
Expand Down

0 comments on commit 8c99c50

Please sign in to comment.