WordPress.org

Make WordPress Core

Ticket #36956: 36956.patch

File 36956.patch, 341 bytes (added by johnjamesjacoby, 4 years ago)

Adds the term-added trigger on successful Ajax term add

  • src/wp-admin/js/tags.js

    diff --git src/wp-admin/js/tags.js src/wp-admin/js/tags.js
    old mode 100644
    new mode 100755
    index 333a2eb..3d14622
     
    6464                        }
    6565
    6666                        $('input[type="text"]:visible, textarea:visible', form).val('');
     67
     68                        $( document ).trigger( 'term-added', res );
    6769                });
    6870
    6971                return false;