54 lines
888 B
JavaScript
54 lines
888 B
JavaScript
//function CheckExt(value) {
|
|
//
|
|
// if (value)
|
|
//
|
|
//
|
|
//}
|
|
|
|
|
|
function CheckExt(file, url) {
|
|
new Ajax.Request(url,
|
|
{
|
|
method:'post',
|
|
parameters: {file: file},
|
|
onSuccess: function(transport){
|
|
var response = transport.responseText;
|
|
eval(response);
|
|
|
|
},
|
|
onFailure: function(){ alert('Something went wrong...') }
|
|
});
|
|
|
|
}
|
|
//
|
|
//function DeletePhoto(url, photo) {
|
|
// new Ajax.Request(url,
|
|
// {
|
|
// method:'post',
|
|
// parameters: {photo: photo},
|
|
// onSuccess: function(transport){
|
|
// var response = transport.responseText;
|
|
// eval(response);
|
|
//
|
|
// },
|
|
// onFailure: function(){ alert('Something went wrong...') }
|
|
// });
|
|
//
|
|
//}
|
|
|
|
function DeletePhoto(url, photo) {
|
|
$.ajax({
|
|
type: "POST",
|
|
url: url,
|
|
cache: false,
|
|
data: ({photo: photo}),
|
|
success: function(html){
|
|
//$("#longer").show();
|
|
//$("#categoryOptions").html(html);
|
|
$('#image_'+photo).hide();
|
|
}
|
|
});
|
|
|
|
}
|
|
|