Improved auto-completion of custom page urls
authorMarcel Werk <burntime@woltlab.com>
Sun, 9 Oct 2016 17:10:08 +0000 (19:10 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 9 Oct 2016 17:10:27 +0000 (19:10 +0200)
wcfsetup/install/files/acp/templates/pageAdd.tpl

index 637c8e6ba4a23d899a7da4e49941adc6066def07..a22e51c0644c5f94418b819d760f22be8d5b800e 100644 (file)
@@ -33,6 +33,7 @@
        <script data-relocate="true">
                elById('name').addEventListener('blur', function() {
                        var name = this.value;
+                       if (!name) return;
                        name = name.replace(/ /g, '-');
                        name = name.replace(/[^a-z0-9-]/gi, '');