another large clean up of code, all POSTs are now using make_response() and returning json OR are for a form that flask handles with rendering direct html. Where there is a POST with json response, the jscript now calls CheckForJobs() to show it in the F/E. Removed several debugs. Fixed up undocumented BUG where import datetime was wrong, and prefix/suffix also to offer directories near the date of an image. Removed unused routes for clearing messages
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
|
||||
function ResetPageSize()
|
||||
{
|
||||
console.log( $("#pagesize").val() )
|
||||
$("#psform").submit()
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
orig_face_{{f.id}}.orig_w = {{f.face_right}}*1.05 - {{f.face_left}}*.95
|
||||
orig_face_{{f.id}}.orig_h = {{f.face_bottom}}*1.05 - {{f.face_top}}*.95
|
||||
|
||||
//console.log( orig_face_{{f.id}} )
|
||||
|
||||
// when the document is ready, then DrawRefimg
|
||||
$(function() { DrawUnmatchedFace( fig_{{f.id}}, im_{{f.id}}, c_{{f.id}}, orig_face_{{f.id}} ) });
|
||||
</script>
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
|
||||
{% block script_content %}
|
||||
<script>
|
||||
<!-- browsers can put the fakepath in for security, remove it -->
|
||||
function DoMagic() {
|
||||
str=$("#new_file_chooser").val()
|
||||
console.log(str)
|
||||
|
||||
Reference in New Issue
Block a user