Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-admin/js
NameTypeSizeActions
📁 .. Folder -
📄 accordion.js File 2933
Edit Download
📄 accordion.min.js File 758
Edit Download
📄 application-passwords.js File 6394
Edit Download
📄 application-passwords.min.js File 3024
Edit Download
📄 auth-app.js File 5796
Edit Download
📄 auth-app.min.js File 2084
Edit Download
📄 code-editor.js File 11588
Edit Download
📄 code-editor.min.js File 3083
Edit Download
📄 color-picker.js File 9768
Edit Download
📄 color-picker.min.js File 3486
Edit Download
📄 comment.js File 2919
Edit Download
📄 comment.min.js File 1315
Edit Download
📄 common.js File 62618
Edit Download
📄 common.min.js File 23676
Edit Download
📄 custom-background.js File 3435
Edit Download
📄 custom-background.min.js File 1206
Edit Download
📄 custom-header.js File 2023
Edit Download
📄 customize-controls.js File 294257
Edit Download
📄 customize-controls.min.js File 111759
Edit Download
📄 customize-nav-menus.js File 113798
Edit Download
📄 customize-nav-menus.min.js File 48055
Edit Download
📄 customize-widgets.js File 71727
Edit Download
📄 customize-widgets.min.js File 28065
Edit Download
📄 dashboard.js File 27666
Edit Download
📄 dashboard.min.js File 8862
Edit Download
📄 edit-comments.js File 38006
Edit Download
📄 edit-comments.min.js File 15488
Edit Download
📄 editor-expand.js File 42606
Edit Download
📄 editor-expand.min.js File 13451
Edit Download
📄 editor.js File 45036
Edit Download
📄 editor.min.js File 13066
Edit Download
📄 farbtastic.js File 7849
Edit Download
📄 gallery.js File 5543
Edit Download
📄 gallery.min.js File 3741
Edit Download
📄 image-edit.js File 40936
Edit Download
📄 image-edit.min.js File 15515
Edit Download
📄 inline-edit-post.js File 20650
Edit Download
📄 inline-edit-post.min.js File 9639
Edit Download
📄 inline-edit-tax.js File 7797
Edit Download
📄 inline-edit-tax.min.js File 2997
Edit Download
📄 iris.min.js File 23643
Edit Download
📄 language-chooser.js File 890
Edit Download
📄 language-chooser.min.js File 423
Edit Download
📄 link.js File 3987
Edit Download
📄 link.min.js File 1742
Edit Download
📄 media-gallery.js File 1303
Edit Download
📄 media-gallery.min.js File 611
Edit Download
📄 media-upload.js File 3465
Edit Download
📄 media-upload.min.js File 1152
Edit Download
📄 media.js File 6765
Edit Download
📄 media.min.js File 2439
Edit Download
📄 nav-menu.js File 62177
Edit Download
📄 nav-menu.min.js File 30563
Edit Download
📄 password-strength-meter.js File 4236
Edit Download
📄 password-strength-meter.min.js File 1123
Edit Download
📄 password-toggle.js File 1339
Edit Download
📄 password-toggle.min.js File 847
Edit Download
📄 plugin-install.js File 7086
Edit Download
📄 plugin-install.min.js File 2403
Edit Download
📄 post.js File 39607
Edit Download
📄 post.min.js File 18845
Edit Download
📄 postbox.js File 18937
Edit Download
📄 postbox.min.js File 6761
Edit Download
📄 privacy-tools.js File 10923
Edit Download
📄 privacy-tools.min.js File 5154
Edit Download
📄 revisions.js File 34729
Edit Download
📄 revisions.min.js File 18401
Edit Download
📄 set-post-thumbnail.js File 876
Edit Download
📄 set-post-thumbnail.min.js File 620
Edit Download
📄 site-health.js File 13465
Edit Download
📄 site-health.min.js File 6282
Edit Download
📄 site-icon.js File 6243
Edit Download
📄 site-icon.min.js File 2254
Edit Download
📄 svg-painter.js File 3280
Edit Download
📄 svg-painter.min.js File 1567
Edit Download
📄 tags-box.js File 11140
Edit Download
📄 tags-box.min.js File 3077
Edit Download
📄 tags-suggest.js File 5771
Edit Download
📄 tags-suggest.min.js File 2269
Edit Download
📄 tags.js File 4967
Edit Download
📄 tags.min.js File 2091
Edit Download
📄 theme-plugin-editor.js File 25360
Edit Download
📄 theme-plugin-editor.min.js File 11709
Edit Download
📄 theme.js File 55979
Edit Download
📄 theme.min.js File 27051
Edit Download
📄 updates.js File 111959
Edit Download
📄 updates.min.js File 48407
Edit Download
📄 user-profile.js File 15355
Edit Download
📄 user-profile.min.js File 6862
Edit Download
📄 user-suggest.js File 2301
Edit Download
📄 user-suggest.min.js File 676
Edit Download
📁 widgets Folder -
📄 widgets.js File 23098
Edit Download
📄 widgets.min.js File 12609
Edit Download
📄 word-count.js File 7696
Edit Download
📄 word-count.min.js File 1530
Edit Download
📄 xfn.js File 740
Edit Download
📄 xfn.min.js File 458
Edit Download
/** * WordPress Administration Navigation Menu * Interface JS functions * * @version 2.0.0 * * @package WordPress * @subpackage Administration * @output wp-admin/js/nav-menu.js */ /* global menus, postboxes, columns, isRtl, ajaxurl, wpNavMenu */ (function($) { var api; /** * Contains all the functions to handle WordPress navigation menus administration. * * @namespace wpNavMenu */ api = window.wpNavMenu = { options : { menuItemDepthPerLevel : 30, // Do not use directly. Use depthToPx and pxToDepth instead. globalMaxDepth: 11, sortableItems: '> *', targetTolerance: 0 }, menuList : undefined, // Set in init. targetList : undefined, // Set in init. menusChanged : false, isRTL: !! ( 'undefined' != typeof isRtl && isRtl ), negateIfRTL: ( 'undefined' != typeof isRtl && isRtl ) ? -1 : 1, lastSearch: '', // Functions that run on init. init : function() { api.menuList = $('#menu-to-edit'); api.targetList = api.menuList; this.jQueryExtensions(); this.attachMenuEditListeners(); this.attachBulkSelectButtonListeners(); this.attachMenuCheckBoxListeners(); this.attachMenuItemDeleteButton(); this.attachPendingMenuItemsListForDeletion(); this.attachQuickSearchListeners(); this.attachThemeLocationsListeners(); this.attachMenuSaveSubmitListeners(); this.attachTabsPanelListeners(); this.attachUnsavedChangesListener(); if ( api.menuList.length ) this.initSortables(); if ( menus.oneThemeLocationNoMenus ) $( '#posttype-page' ).addSelectedToMenu( api.addMenuItemToBottom ); this.initManageLocations(); this.initAccessibility(); this.initToggles(); this.initPreviewing(); }, jQueryExtensions : function() { // jQuery extensions. $.fn.extend({ menuItemDepth : function() { var margin = api.isRTL ? this.eq(0).css('margin-right') : this.eq(0).css('margin-left'); return api.pxToDepth( margin && -1 != margin.indexOf('px') ? margin.slice(0, -2) : 0 ); }, updateDepthClass : function(current, prev) { return this.each(function(){ var t = $(this); prev = prev || t.menuItemDepth(); $(this).removeClass('menu-item-depth-'+ prev ) .addClass('menu-item-depth-'+ current ); }); }, shiftDepthClass : function(change) { return this.each(function(){ var t = $(this), depth = t.menuItemDepth(), newDepth = depth + change; t.removeClass( 'menu-item-depth-'+ depth ) .addClass( 'menu-item-depth-'+ ( newDepth ) ); if ( 0 === newDepth ) { t.find( '.is-submenu' ).hide(); } }); }, childMenuItems : function() { var result = $(); this.each(function(){ var t = $(this), depth = t.menuItemDepth(), next = t.next( '.menu-item' ); while( next.length && next.menuItemDepth() > depth ) { result = result.add( next ); next = next.next( '.menu-item' ); } }); return result; }, shiftHorizontally : function( dir ) { return this.each(function(){ var t = $(this), depth = t.menuItemDepth(), newDepth = depth + dir; // Change .menu-item-depth-n class. t.moveHorizontally( newDepth, depth ); }); }, moveHorizontally : function( newDepth, depth ) { return this.each(function(){ var t = $(this), children = t.childMenuItems(), diff = newDepth - depth, subItemText = t.find('.is-submenu'); // Change .menu-item-depth-n class. t.updateDepthClass( newDepth, depth ).updateParentMenuItemDBId(); // If it has children, move those too. if ( children ) { children.each(function() { var t = $(this), thisDepth = t.menuItemDepth(), newDepth = thisDepth + diff; t.updateDepthClass(newDepth, thisDepth).updateParentMenuItemDBId(); }); } // Show "Sub item" helper text. if (0 === newDepth) subItemText.hide(); else subItemText.show(); }); }, updateParentMenuItemDBId : function() { return this.each(function(){ var item = $(this), input = item.find( '.menu-item-data-parent-id' ), depth = parseInt( item.menuItemDepth(), 10 ), parentDepth = depth - 1, parent = item.prevAll( '.menu-item-depth-' + parentDepth ).first(); if ( 0 === depth ) { // Item is on the top level, has no parent. input.val(0); } else { // Find the parent item, and retrieve its object id. input.val( parent.find( '.menu-item-data-db-id' ).val() ); } }); }, hideAdvancedMenuItemFields : function() { return this.each(function(){ var that = $(this); $('.hide-column-tog').not(':checked').each(function(){ that.find('.field-' + $(this).val() ).addClass('hidden-field'); }); }); }, /** * Adds selected menu items to the menu. * * @ignore * * @param jQuery metabox The metabox jQuery object. */ addSelectedToMenu : function(processMethod) { if ( 0 === $('#menu-to-edit').length ) { return false; } return this.each(function() { var t = $(this), menuItems = {}, checkboxes = ( menus.oneThemeLocationNoMenus && 0 === t.find( '.tabs-panel-active .categorychecklist li input:checked' ).length ) ? t.find( '#page-all li input[type="checkbox"]' ) : t.find( '.tabs-panel-active .categorychecklist li input:checked' ), re = /menu-item\[([^\]]*)/; processMethod = processMethod || api.addMenuItemToBottom; // If no items are checked, bail. if ( !checkboxes.length ) return false; // Show the Ajax spinner. t.find( '.button-controls .spinner' ).addClass( 'is-active' ); // Retrieve menu item data. $(checkboxes).each(function(){ var t = $(this), listItemDBIDMatch = re.exec( t.attr('name') ), listItemDBID = 'undefined' == typeof listItemDBIDMatch[1] ? 0 : parseInt(listItemDBIDMatch[1], 10); if ( this.className && -1 != this.className.indexOf('add-to-top') ) processMethod = api.addMenuItemToTop; menuItems[listItemDBID] = t.closest('li').getItemData( 'add-menu-item', listItemDBID ); }); // Add the items. api.addItemToMenu(menuItems, processMethod, function(){ // Deselect the items and hide the Ajax spinner. checkboxes.prop( 'checked', false ); t.find( '.button-controls .select-all' ).prop( 'checked', false ); t.find( '.button-controls .spinner' ).removeClass( 'is-active' ); t.updateParentDropdown(); t.updateOrderDropdown(); }); }); }, getItemData : function( itemType, id ) { itemType = itemType || 'menu-item'; var itemData = {}, i, fields = [ 'menu-item-db-id', 'menu-item-object-id', 'menu-item-object', 'menu-item-parent-id', 'menu-item-position', 'menu-item-type', 'menu-item-title', 'menu-item-url', 'menu-item-description', 'menu-item-attr-title', 'menu-item-target', 'menu-item-classes', 'menu-item-xfn' ]; if( !id && itemType == 'menu-item' ) { id = this.find('.menu-item-data-db-id').val(); } if( !id ) return itemData; this.find('input').each(function() { var field; i = fields.length; while ( i-- ) { if( itemType == 'menu-item' ) field = fields[i] + '[' + id + ']'; else if( itemType == 'add-menu-item' ) field = 'menu-item[' + id + '][' + fields[i] + ']'; if ( this.name && field == this.name ) { itemData[fields[i]] = this.value; } } }); return itemData; }, setItemData : function( itemData, itemType, id ) { // Can take a type, such as 'menu-item', or an id. itemType = itemType || 'menu-item'; if( !id && itemType == 'menu-item' ) { id = $('.menu-item-data-db-id', this).val(); } if( !id ) return this; this.find('input').each(function() { var t = $(this), field; $.each( itemData, function( attr, val ) { if( itemType == 'menu-item' ) field = attr + '[' + id + ']'; else if( itemType == 'add-menu-item' ) field = 'menu-item[' + id + '][' + attr + ']'; if ( field == t.attr('name') ) { t.val( val ); } }); }); return this; }, updateParentDropdown : function() { return this.each(function(){ var menuItems = $( '#menu-to-edit li' ), parentDropdowns = $( '.edit-menu-item-parent' ); $.each( parentDropdowns, function() { var parentDropdown = $( this ), currentItemID = parseInt( parentDropdown.closest( 'li.menu-item' ).find( '.menu-item-data-db-id' ).val() ), currentParentID = parseInt( parentDropdown.closest( 'li.menu-item' ).find( '.menu-item-data-parent-id' ).val() ), currentItem = parentDropdown.closest( 'li.menu-item' ), currentMenuItemChild = currentItem.childMenuItems(), excludeMenuItem = /** @type {number[]} */ [ currentItemID ]; parentDropdown.empty(); if ( currentMenuItemChild.length > 0 ) { $.each( currentMenuItemChild, function(){ var childItem = $(this), childID = parseInt( childItem.find( '.menu-item-data-db-id' ).val() ); excludeMenuItem.push( childID ); }); } parentDropdown.append( $( '