View | Details | Raw Unified | Return to bug 15868
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/marc_modification_templates.js (-3 / +6 lines)
Lines 185-193 function clearFormElements(divId) { Link Here
185
185
186
}
186
}
187
187
188
function confirmDeleteAction() {
189
    return confirm( MSG_MMT_CONFIRM_DEL_TEMPLATE_ACTION );
190
}
191
188
function confirmDelete() {
192
function confirmDelete() {
189
    var agree = confirm( MSG_MMT_CONFIRM_DEL_TEMPLATE );
193
    return confirm( MSG_MMT_CONFIRM_DEL_TEMPLATE );
190
    return agree;
191
}
194
}
192
195
193
var modaction_legend_innerhtml;
196
var modaction_legend_innerhtml;
Lines 285-288 function setSelectByValue( selectId, value ) { Link Here
285
            s.selectedIndex = i;
288
            s.selectedIndex = i;
286
        }
289
        }
287
    }
290
    }
288
}
291
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt (-3 / +3 lines)
Lines 11-17 Link Here
11
    var MSG_MMT_SOURCE_FIELD = _("The source field should be filled.");
11
    var MSG_MMT_SOURCE_FIELD = _("The source field should be filled.");
12
    var MSG_MMT_EVERY = _("Every");
12
    var MSG_MMT_EVERY = _("Every");
13
    var MSG_MMT_ALL = _("All");
13
    var MSG_MMT_ALL = _("All");
14
    var MSG_MMT_CONFIRM_DEL_TEMPLATE= _("Are you sure you wish to delete this template?");
14
    var MSG_MMT_CONFIRM_DEL_TEMPLATE = _("Are you sure you wish to delete this template?");
15
    var MSG_MMT_CONFIRM_DEL_TEMPLATE_ACTION = _("Are you sure you wish to delete this template action?");
15
    var MSG_MMT_EDIT_ACTION = _("Edit action %s");
16
    var MSG_MMT_EDIT_ACTION = _("Edit action %s");
16
    var MSG_MMT_UPDATE_ACTION = _("Update action");
17
    var MSG_MMT_UPDATE_ACTION = _("Update action");
17
    //]]>
18
    //]]>
Lines 162-168 Link Here
162
                                                    "[% ActionsLoo.conditional_regex |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]",
163
                                                    "[% ActionsLoo.conditional_regex |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]",
163
                                                    "[% ActionsLoo.description |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]"
164
                                                    "[% ActionsLoo.description |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]"
164
                                                );updateAllEvery();'>Edit</a></td>
165
                                                );updateAllEvery();'>Edit</a></td>
165
                                <td><a href="marc_modification_templates.pl?template_id=[% ActionsLoo.template_id %]&op=delete_action&mmta_id=[% ActionsLoo.mmta_id %]">Delete</a></td>
166
                                <td><a href="marc_modification_templates.pl?template_id=[% ActionsLoo.template_id %]&op=delete_action&mmta_id=[% ActionsLoo.mmta_id %]" onclick="return confirmDeleteAction();">Delete</a></td>
166
                            </tr>
167
                            </tr>
167
                        [% END %]
168
                        [% END %]
168
                    </table>
169
                    </table>
169
- 

Return to bug 15868