Bug 12150: Add missing space and correct innerHTML typo
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 11 Jun 2014 10:47:28 +0000 (12:47 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 3 Jul 2014 12:53:58 +0000 (09:53 -0300)
The previous patch forgot to add a space between the string "Edit
action" and the placeholder.

Trying to test it, I found a typo: innerhtml does not exist, it should
be innerHTML.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt

index bcf3e56..a9b9d3d 100644 (file)
@@ -201,8 +201,8 @@ function editAction( mmta_id, ordering, action, field_number, from_field, from_s
 
     document.getElementById('description').value = description;
 
-    window.modaction_legend_innerhtml = document.getElementById('modaction_legend').innerhtml;
-    document.getElementById('modaction_legend').innerhtml = _("Edit action%s").format(ordering);
+    window.modaction_legend_innerhtml = document.getElementById('modaction_legend').innerHTML;
+    document.getElementById('modaction_legend').innerHTML = _("Edit action %s").format(ordering);
 
     window.action_submit_value = document.getElementById('action_submit').value;
     document.getElementById('action_submit').value = _("Update action");
@@ -241,7 +241,7 @@ function cancelEditAction() {
 
     document.getElementById('conditional_regex').checked = false;
 
-    document.getElementById('modaction_legend').innerhtml = window.modaction_legend_innerhtml;
+    document.getElementById('modaction_legend').innerHTML = window.modaction_legend_innerhtml;
     document.getElementById('action_submit').value = window.action_submit_value;
 
     hide('cancel_edit');