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 574-579 Link Here
574
                            alert(_("Please specify a title for 'Default'"));
574
                            alert(_("Please specify a title for 'Default'"));
575
                            return false;
575
                            return false;
576
                        }
576
                        }
577
                        else {
578
                            [% UNLESS wysiwyg %]
579
                                let content = $('#content_default').siblings(".CodeMirror")[0].CodeMirror.getValue();
580
                            [% ELSE %]
581
                                let content = tinyMCE.get('content_default').getContent();
582
                            [% END %]
583
584
                            if ( ! content.length > 0 ) {
585
                                alert(__("Please specify a content for 'Default'"));
586
                                return false;
587
                            }
588
                        }
577
589
578
                        form.submit();
590
                        form.submit();
579
                    }
591
                    }
580
- 

Return to bug 29828