updated files.py and files.html to add a context menu submenu to look for faces in an image. Doesnt work yet, but the context menu works
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
caption-side: bottom;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-fluid">
|
||||
<form id="main_form" method="POST">
|
||||
<input type="hidden" name="cwd" id="cwd" value="{{cwd}}">
|
||||
@@ -467,7 +466,16 @@ $.contextMenu({
|
||||
details: { name: "Details..." },
|
||||
view: { name: "View File" },
|
||||
sep: "---",
|
||||
move: { name: "Move selected file(s) to new storage folder" }
|
||||
move: { name: "Move selected file(s) to new storage folder" },
|
||||
sep2: "---",
|
||||
ai: {
|
||||
name: "Scan file for faces",
|
||||
items: {
|
||||
{% for p in people %}
|
||||
"ai-{{p.tag}}": {"name": "{{p.tag}}"},
|
||||
{% endfor %}
|
||||
}
|
||||
}
|
||||
}
|
||||
if( SelContainsBinAndNotBin() ) {
|
||||
item_list['both']= { name: 'Cannot delete and restore at same time', disabled: true }
|
||||
@@ -485,6 +493,7 @@ $.contextMenu({
|
||||
if( key == "move" ) { MoveDBox() }
|
||||
if( key == "del" ) { DelDBox('Delete') }
|
||||
if( key == "undel" ) { DelDBox('Restore') }
|
||||
if( key.startsWith("ai")) { console.log( key +'was chosen')}
|
||||
},
|
||||
items: item_list
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user