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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-1 / +12 lines)
Lines 560-565 Link Here
560
                            alert(__("Please specify a title for 'Default'"));
560
                            alert(__("Please specify a title for 'Default'"));
561
                            return false;
561
                            return false;
562
                        }
562
                        }
563
                        else {
564
                            [% UNLESS wysiwyg %]
565
                                let content = $('#content_default').siblings(".CodeMirror")[0].CodeMirror.getValue();
566
                            [% ELSE %]
567
                                let content = tinyMCE.get('content_default').getContent();
568
                            [% END %]
569
570
                            if ( ! content.length > 0 ) {
571
                                alert(__("Please specify a content for 'Default'"));
572
                                return false;
573
                            }
574
                        }
563
575
564
                        form.submit();
576
                        form.submit();
565
                    }
577
                    }
566
- 

Return to bug 29828