git-svn-id: https://msi/svn/firstRepo/Management/trunk@26 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -88,23 +88,38 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/ricette/ricetteViewTem
|
||||
filterable: true,
|
||||
autoshowfiltericon: true,
|
||||
columns: [
|
||||
{text: 'Titolo', dataField: 'titolo', width: "58%",
|
||||
{text: 'Titolo', dataField: 'titolo', width: "50%",
|
||||
cellsrenderer: function(row, columnfield, value, defaulthtml, columnproperties) {
|
||||
return "<div style='overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin-right: 2px; margin-left: 4px; margin-top: 4px;'>" + unescape(value ) + "</div>";
|
||||
}
|
||||
},
|
||||
{text: 'Autore', dataField: 'autore', width: "34%",
|
||||
{text: 'Autore', dataField: 'autore', width: "30%",
|
||||
cellsrenderer: function(row, columnfield, value, defaulthtml, columnproperties) {
|
||||
return "<div style='overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin-right: 2px; margin-left: 4px; margin-top: 4px;'>" + unescape(value ) + "</div>";
|
||||
}
|
||||
},
|
||||
{text: '', datafield: 'Edit', columntype: 'button', width: '7%',
|
||||
{text: '', datafield: 'Edit', columntype: 'button', width: '10%',
|
||||
cellsrenderer: function() {
|
||||
return "Edit";
|
||||
return "Modifica";
|
||||
},
|
||||
buttonclick: function(row) {
|
||||
self.openRicetta(row);
|
||||
}
|
||||
},
|
||||
{text: '', datafield: 'Del', columntype: 'button', width: '10%',
|
||||
cellsrenderer: function() {
|
||||
return "Elimina";
|
||||
},
|
||||
buttonclick: function(row) {
|
||||
$.ajax({
|
||||
url: myManifest.Settings.DefaultURL + "/backend/ricetta/" + row.id,
|
||||
//dataType: "json",
|
||||
type: 'DELETE'
|
||||
}).then(function (response) {
|
||||
var msg = response;
|
||||
alert(msg.message);
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user