git-svn-id: https://msi/svn/firstRepo/Management/trunk@57 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-01-29 16:51:39 +00:00
parent e5ee39281d
commit d45146fc23
3 changed files with 66 additions and 49 deletions
+4 -1
View File
@@ -114,13 +114,16 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/ricette/ricetteViewTem
return "Elimina";
},
buttonclick: function(row) {
var items = $("#jqxgrid").jqxGrid('source');
var item = items.records[row];
$.ajax({
url: myManifest.Settings.DefaultURL + "/backend/ricetta/" + row.id,
url: myManifest.Settings.DefaultURL + "/backend/ricetta/" + item.ricetta_id,
//dataType: "json",
type: 'DELETE'
}).then(function (response) {
var msg = response;
alert(msg.message);
$("#jqxgrid").jqxGrid('updatebounddata');
});
}
}