ImageUpload: resolve on keyup und async submit
authorSven Schöling <s.schoeling@googlemail.com>
Fri, 7 May 2021 13:22:31 +0000 (15:22 +0200)
committerSven Schöling <s.schoeling@googlemail.com>
Fri, 25 Jun 2021 13:51:32 +0000 (15:51 +0200)
templates/mobile_webpages/image_upload/local_list.html

index 358c788..ceb6e88 100644 (file)
@@ -37,9 +37,9 @@
     <p>Schritt 2: Dateien hochladen</p>
   <div class="container">
     <div class="row">
-      [% P.M.input_tag("object_number", "", label=LxERP.t8("Number"), class="col s4", onchange="kivi.ImageUpload.resolve_object(event)") %]
+      [% P.M.input_tag("object_number", "", label=LxERP.t8("Number"), class="col s4", onkeyup="kivi.ImageUpload.resolve_object(event)") %]
       <div id="object_description" class="col s8">-</div>
-      [% P.M.button_tag("submit", LxERP.t8("Upload Images"), class="col s12") %]
+      [% P.M.button_tag("kivi.ImageUpload.upload_files()", LxERP.t8("Upload Images"), class="col s12") %]
     </div>