git-svn-id: https://msi/svn/firstRepo/Management/trunk@50 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -336,7 +336,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
|||||||
fileInputName: 'image',
|
fileInputName: 'image',
|
||||||
multipleFilesUpload: false,
|
multipleFilesUpload: false,
|
||||||
accept: 'image/*',
|
accept: 'image/*',
|
||||||
uploadUrl: myManifest.Settings.DefaultURL + '/backend/photos' });
|
uploadUrl: myManifest.Settings.DefaultURL + '/backend/photo' });
|
||||||
|
|
||||||
$('#jqxFileUpload').on('uploadStart', function (event) {
|
$('#jqxFileUpload').on('uploadStart', function (event) {
|
||||||
var profileID = "10203753344023406";
|
var profileID = "10203753344023406";
|
||||||
@@ -344,7 +344,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
|||||||
if($("#autorePhoto").val() != 0)
|
if($("#autorePhoto").val() != 0)
|
||||||
profileID = $("#autorePhoto").val();
|
profileID = $("#autorePhoto").val();
|
||||||
|
|
||||||
$('form[action="' + myManifest.Settings.DefaultURL + '/backend/photos' + '"]').
|
$('form[action="' + myManifest.Settings.DefaultURL + '/backend/photo' + '"]').
|
||||||
append('<input type="hidden" name="ricetta_id" value="' + self.ricettaEditing.ricetta_id +'" />').
|
append('<input type="hidden" name="ricetta_id" value="' + self.ricettaEditing.ricetta_id +'" />').
|
||||||
append('<input type="hidden" name="keyStore" value="' + profileID + '" />');
|
append('<input type="hidden" name="keyStore" value="' + profileID + '" />');
|
||||||
});
|
});
|
||||||
@@ -362,7 +362,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
|||||||
{text: 'Autore', dataField: 'profile_name', width: "170px"},
|
{text: 'Autore', dataField: 'profile_name', width: "170px"},
|
||||||
{text: 'Image', dataField: 'image', height: "100px",
|
{text: 'Image', dataField: 'image', height: "100px",
|
||||||
cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
|
cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
|
||||||
return '<center><img style="margin-left: 5px;height: 100px;" src="' + myManifest.Settings.DefaultURL + '/api/photos/thumbnail/' + rowdata.id_photo + '"/></center>';
|
return '<center><img style="margin-left: 5px;height: 100px;" src="' + myManifest.Settings.DefaultURL + '/api/photo/thumbnail/' + rowdata.id_photo + '"/></center>';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{text: 'Published', editable: false, dataField: 'published', width: "70px",
|
{text: 'Published', editable: false, dataField: 'published', width: "70px",
|
||||||
@@ -378,7 +378,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
|||||||
buttonclick: function(row) {
|
buttonclick: function(row) {
|
||||||
var items = $("#gridPhotos").jqxGrid('source');
|
var items = $("#gridPhotos").jqxGrid('source');
|
||||||
var item = items.records[row];
|
var item = items.records[row];
|
||||||
self.fullScrDlg.$el.find('#imgFullScr').attr('src', myManifest.Settings.DefaultURL + '/api/photos/' + item.id_photo);
|
self.fullScrDlg.$el.find('#imgFullScr').attr('src', myManifest.Settings.DefaultURL + '/api/photo/' + item.id_photo);
|
||||||
self.fullScrDlg.open();
|
self.fullScrDlg.open();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user