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

(-)a/koha-tmpl/intranet-tmpl/prog/js/holds.js (-13 / +13 lines)
Lines 386-397 $(document).ready(function () { Link Here
386
                                        "</a>"
386
                                        "</a>"
387
                                    );
387
                                    );
388
                                } else {
388
                                } else {
389
                                    const link = document.createElement("a");
389
                                    const link = Object.assign(
390
                                    link.classList.add(
390
                                        document.createElement("a"),
391
                                        "hold-suspend",
391
                                        {
392
                                        "btn",
392
                                            className:
393
                                        "btn-default",
393
                                                "hold-suspend btn btn-default btn-xs",
394
                                        "btn-xs"
394
                                            textContent: " " + __("Suspend"),
395
                                        }
395
                                    );
396
                                    );
396
                                    link.setAttribute(
397
                                    link.setAttribute(
397
                                        "data-hold-id",
398
                                        "data-hold-id",
Lines 401-413 $(document).ready(function () { Link Here
401
                                        "data-hold-title",
402
                                        "data-hold-title",
402
                                        oObj.title
403
                                        oObj.title
403
                                    );
404
                                    );
404
                                    link.textContent = " " + __("Suspend");
405
                                    const icon = Object.assign(
405
                                    const icon = document.createElement("i");
406
                                        document.createElement("i"),
406
                                    icon.classList.add("fa", "fa-pause");
407
                                        {
407
                                    link.insertAdjacentElement(
408
                                            className: "fa fa-pause",
408
                                        "afterbegin",
409
                                        }
409
                                        icon
410
                                    );
410
                                    );
411
                                    link.prepend(icon);
411
                                    return link.outerHTML;
412
                                    return link.outerHTML;
412
                                }
413
                                }
413
                            },
414
                            },
414
- 

Return to bug 40538