- Add videodb PHP/MySQL media collection manager (Blu-ray, DVD, CD) - Dockerfile: PHP 8.1 + Apache with GD/mysqli/exif extensions - docker-compose.yml: app on port 6761 + MySQL 8.0 with health checks - docker-entrypoint.sh: auto-generates config.inc.php from env vars, waits for MySQL, initializes DB schema idempotently - init-db.php: CLI schema installer using app's own prefix_query() logic - Persistent volumes for DB, cache, and cover images Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
54 lines
1.2 KiB
JavaScript
54 lines
1.2 KiB
JavaScript
/**
|
|
* Editing logic
|
|
*
|
|
* @package JavaScript
|
|
* @author Andreas Goetz <cpuidle@gmx.de>
|
|
* @version $Id: edit.js,v 1.3 2013/03/13 08:01:01 andig2 Exp $
|
|
*/
|
|
|
|
/*
|
|
$(document).ready(function () {
|
|
|
|
$("#title").autocomplete({
|
|
source: function(request, response) {
|
|
$.ajax({
|
|
url: "edit.php",
|
|
data: {
|
|
ajax_type: "json",
|
|
ajax_autocomplete_title: request.term
|
|
},
|
|
success: function(data) {
|
|
response($.map(data, function(item) {
|
|
return {
|
|
id: item.id,
|
|
value: item.title
|
|
}
|
|
}))
|
|
}
|
|
})
|
|
},
|
|
select: function(event, ui) {
|
|
$("#imdbID").val(ui.item.id);
|
|
$("#lookup1").click();
|
|
}
|
|
});
|
|
});
|
|
*/
|
|
function lookupData(title) {
|
|
var win = open('lookup.php?find=' + encodeURIComponent(title), 'lookup',
|
|
'width=700,height=600,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
|
|
win.focus();
|
|
}
|
|
|
|
function lookupImage(title) {
|
|
var win = open('lookup.php?find=' + encodeURIComponent(title) + '&searchtype=image&engine=google', 'lookup',
|
|
'width=450,height=500,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
|
|
win.focus();
|
|
}
|
|
|
|
function changedId() {
|
|
if ($("#imdbID").val()) {
|
|
$('#lookup1').click();
|
|
}
|
|
}
|