summaryrefslogtreecommitdiff
path: root/httemplate/misc/inventory_item-import.html
diff options
context:
space:
mode:
authorivan <ivan>2011-04-27 00:48:10 +0000
committerivan <ivan>2011-04-27 00:48:10 +0000
commit69a17ed7c31d23670f715ad639ab16b12392dcc1 (patch)
tree93bc0aa9618cd7e5e8757a207376b3c5d0f5887d /httemplate/misc/inventory_item-import.html
parente7c2224fdf499bd9cdf3759920378ec360eb965e (diff)
fix submission bug w/chrome, RT#12638
Diffstat (limited to 'httemplate/misc/inventory_item-import.html')
-rw-r--r--httemplate/misc/inventory_item-import.html32
1 files changed, 16 insertions, 16 deletions
diff --git a/httemplate/misc/inventory_item-import.html b/httemplate/misc/inventory_item-import.html
index d264bafc5..37898739a 100644
--- a/httemplate/misc/inventory_item-import.html
+++ b/httemplate/misc/inventory_item-import.html
@@ -3,18 +3,18 @@
Import a file containing <% PL($inventory_class->classname) %>, one per line.
<BR><BR>
-<% include( '/elements/form-file_upload.html',
- 'name' => 'InventoryItemImportForm',
- 'action' => 'process/inventory_item-import.html',
- 'num_files' => 1,
- #'fields' => [ 'format', 'itembatch', 'classnum', 'agentnum' ],
- 'fields' => [ 'format', 'classnum', 'agentnum', ],
- 'message' => 'Inventory import successful',
- #XXX redirect via $itembatch? or just back to class browse?
- #'url' => $p."search/phone_avail.html?availbatch=$availbatch",
- 'url' => $p."search/inventory_item.html?classnum=$classnum;avail=1",
- )
-%>
+<& /elements/form-file_upload.html,
+ 'name' => 'InventoryImportForm',
+ 'action' => 'process/inventory_item-import.html',
+ 'num_files' => 1,
+ #'fields' => [ 'format', 'itembatch', 'classnum', 'agentnum' ],
+ 'fields' => [ 'format', 'classnum', 'agentnum', ],
+ 'message' => 'Inventory import successful',
+ #XXX redirect via $itembatch? or just back to class browse?
+ #'url' => $p."search/phone_avail.html?availbatch=$availbatch",
+ 'url' => $p."search/inventory_item.html?classnum=$classnum;avail=1",
+ 'onsubmit' => "document.InventoryImportForm.submitButton.disabled=true;",
+&>
<% &ntable("#cccccc", 2) %>
@@ -37,10 +37,10 @@ Import a file containing <% PL($inventory_class->classname) %>, one per line.
<TR>
<TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
- <INPUT TYPE = "submit"
- ID = "submit"
- VALUE = "Import file"
- onClick = "document.InventoryItemImportForm.submit.disabled=true;"
+ <INPUT TYPE = "submit"
+ NAME = "submitButton"
+ ID = "submitButton"
+ VALUE = "Import file"
>
</TD>
</TR>