Bug 16148: Fix submit button text
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 14 Jun 2016 15:16:13 +0000 (16:16 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Jun 2016 16:11:43 +0000 (16:11 +0000)
The text of the submit button should be init getting the val(), and not
the text().

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js

index 80f74f3..ffd2b77 100644 (file)
@@ -1,6 +1,6 @@
 $(document).ready(function() {
     window.modaction_legend_innerhtml = $("#modaction_legend").text();
-    window.action_submit_value = $("#action_submit").text();
+    window.action_submit_value = $("#action_submit").val();
 
     $('#select_template').find("input:submit").hide();
     $('#select_template').change(function() {