Ticket #2330: core.patch
| File core.patch, 0.8 kB (added by robert, 5 years ago) |
|---|
-
core/page.routing.php
old new 295 295 do { 296 296 var newname = prompt("<?php echo _("Rename route")?> " + document.getElementById('routename').value + " <?php echo _("to:")?>"); 297 297 if (newname == null) return; 298 } while (!newname.match('^[a-zA-Z0-9][a-zA-Z0-9 ]+$') && !alert("<?php echo _("Route name is invalid...please try again")?>"));298 } while (!newname.match('^[a-zA-Z0-9][a-zA-Z0-9_]+$') && !alert("<?php echo _("Route name is invalid...please try again")?>")); 299 299 300 300 document.getElementById('newroutename').value = newname; 301 301 document.getElementById('routeEdit').action.value = 'renameroute';
