git-svn-id: https://msi/svn/firstRepo/Management/trunk@57 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user