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 373-384 $(document).ready(function () { Link Here
373
                                        "</a>"
373
                                        "</a>"
374
                                    );
374
                                    );
375
                                } else {
375
                                } else {
376
                                    const link = document.createElement("a");
376
                                    const link = Object.assign(
377
                                    link.classList.add(
377
                                        document.createElement("a"),
378
                                        "hold-suspend",
378
                                        {
379
                                        "btn",
379
                                            className:
380
                                        "btn-default",
380
                                                "hold-suspend btn btn-default btn-xs",
381
                                        "btn-xs"
381
                                            textContent: " " + __("Suspend"),
382
                                        }
382
                                    );
383
                                    );
383
                                    link.setAttribute(
384
                                    link.setAttribute(
384
                                        "data-hold-id",
385
                                        "data-hold-id",
Lines 388-400 $(document).ready(function () { Link Here
388
                                        "data-hold-title",
389
                                        "data-hold-title",
389
                                        oObj.title
390
                                        oObj.title
390
                                    );
391
                                    );
391
                                    link.textContent = " " + __("Suspend");
392
                                    const icon = Object.assign(
392
                                    const icon = document.createElement("i");
393
                                        document.createElement("i"),
393
                                    icon.classList.add("fa", "fa-pause");
394
                                        {
394
                                    link.insertAdjacentElement(
395
                                            className: "fa fa-pause",
395
                                        "afterbegin",
396
                                        }
396
                                        icon
397
                                    );
397
                                    );
398
                                    link.prepend(icon);
398
                                    return link.outerHTML;
399
                                    return link.outerHTML;
399
                                }
400
                                }
400
                            },
401
                            },
401
- 

Return to bug 40538