feat: add videodb media index with Docker stack
- 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>
This commit is contained in:
34
videodb/templates/nexgen/js/search.js
Normal file
34
videodb/templates/nexgen/js/search.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Search logic
|
||||
*
|
||||
* @package JavaScript
|
||||
* @author Andreas Goetz <cpuidle@gmx.de>
|
||||
* @version $Id: search.js,v 1.1 2013/03/10 16:18:26 andig2 Exp $
|
||||
*/
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#q").autocomplete({
|
||||
source: function(request, response) {
|
||||
$.ajax({
|
||||
url: "search.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();
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user