git-svn-id: https://msi/svn/firstRepo/Management/trunk@26 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -116,7 +116,36 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
||||
valueMember: "category_id"
|
||||
});
|
||||
$("#titolo").jqxInput({placeHolder: "Titolo:", width: '350px', height: 25});
|
||||
$("#autore").jqxInput({placeHolder: "Autore:", width: '350px', height: 25});
|
||||
$("#autore").jqxInput({
|
||||
placeHolder: "Autore:", width: '350px', height: 25,
|
||||
source: function (query, response) {
|
||||
var dataAdapter = new $.jqx.dataAdapter
|
||||
(
|
||||
{
|
||||
datatype: "jsonp",
|
||||
datafields: [
|
||||
{name: 'autore'}
|
||||
],
|
||||
url: myManifest.Settings.DefaultURL + "/api/ricette/authors/" + query,
|
||||
data: {
|
||||
}
|
||||
},
|
||||
{
|
||||
autoBind: true,
|
||||
loadComplete: function (data) {
|
||||
if (data.length > 0) {
|
||||
response($.map(data, function (item) {
|
||||
return {
|
||||
label: item.autore,
|
||||
value: item.autore
|
||||
};
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
$("#lvlDiff").jqxRating({width: 350, height: 35, theme: 'classic'});
|
||||
$("#linkFonte").jqxInput({placeHolder: "Link Fonte:", width: '350px', height: 25});
|
||||
$("#linkYouTube").jqxInput({placeHolder: "Link Youtube:", width: '350px', height: 25});
|
||||
@@ -194,11 +223,11 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
||||
var div = '';
|
||||
if (datarecord.id_tipo_ingredienti === "22")
|
||||
{
|
||||
div = '<div><b>' + datarecord.nome_ingrediente + '</b>: <i>' + datarecord.note + '</i></div>';
|
||||
div = '<div><b>' + datarecord.nome_ingrediente + '</b>: <i>' + unescape(datarecord.note) + '</i></div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
div = '<div><b>' + datarecord.nome_ingrediente + '</b>: ' + datarecord.quantita + ' ' + datarecord.unita + ' <i>' + datarecord.note + '</i></div>';
|
||||
div = '<div><b>' + datarecord.nome_ingrediente + '</b>: ' + datarecord.quantita + ' ' + datarecord.unita + ' <i>' + unescape(datarecord.note) + '</i></div>';
|
||||
}
|
||||
return div;
|
||||
}
|
||||
@@ -273,7 +302,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
||||
"ingrediente_id": val.id_tipo_ingredienti,
|
||||
"quantita": val.quantita,
|
||||
"tipo_quantita_id": val.id_tipo_quantita,
|
||||
"note": val.note
|
||||
"note": escape(val.note)
|
||||
};
|
||||
sendobj.ingredienti.push(newItem);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user