Ticket #13703: 13703.diff
File 13703.diff, 1.7 KB (added by , 14 years ago) |
---|
-
wp-includes/script-loader.php
392 392 'edit' => _x('Edit', 'menu item edit text'), 393 393 'noResultsFound' => _x('No results found.', 'search results'), 394 394 'warnDeleteMenu' => __( "You are about to permanently delete this menu. \n 'Cancel' to stop, 'OK' to delete." ), 395 'errorMenuName' => __( "Please enter a valid menu name." ), 395 396 'saveAlert' => __('The changes you made will be lost if you navigate away from this page.'), 396 397 ) ); 397 398 -
wp-admin/js/nav-menu.dev.js
806 806 }, 807 807 808 808 eventOnClickMenuSave : function(clickedEl) { 809 var locs = ''; 809 var locs = '', 810 menuName = $('#menu-name'), 811 menuNameVal = menuName.val(), 812 menuNameError; 813 // Cancel and warn if invalid menu name 814 if( !menuNameVal || menuNameVal == menuName.attr('title') || !menuNameVal.replace(/\s+/, '') ) { 815 menuNameError = $('#error-menu-name'); 816 if( ! menuNameError.length ) { 817 $('#message').slideUp('fast'); 818 menuNameError = $('<div id="error-menu-name" class="error below-h2"><p>' + navMenuL10n.errorMenuName + '</p></div>').hide(); 819 menuNameError.insertBefore('#nav-menus-frame').slideDown('fast'); 820 } else { 821 menuNameError.hide().fadeIn(); 822 } 823 return false; 824 } 810 825 // Copy menu theme locations 811 826 $('#nav-menu-theme-locations select').each(function() { 812 827 locs += '<input type="hidden" name="' + this.name + '" value="' + $(this).val() + '" />';