Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
kapee-extensions
/
inc
/
admin
/
meta-box
/
js
:
taxonomy.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
( function ( $, rwmb ) { 'use strict'; function addNew() { const $this = $( this ); $this.rwmbModal( { removeElement: '.form-wrap > h2', closeModalCallback: function ( $modal, $input ) { if ( $modal.find( '#the-list tr:first td:eq(0) .row-actions' ).length > 0 ) { this.$objectId = parseInt( $modal.find( '#the-list tr:first' ).attr( 'id' ).split( '-' )[ 1 ] ); this.$objectDisplay = $modal.find( '#the-list tr:first td:eq(0) strong a' ).text(); } } } ); } function init( e ) { const wrapper = e.target || e; $( wrapper ).find( '.rwmb-taxonomy-add-button' ).each( addNew ); } rwmb.$document .on( 'mb_ready', init ) .on( 'clone', function ( e ) { init( $( e.target ).parent() ); } ); } )( jQuery, rwmb );