Changeset 37630
- Timestamp:
- 06/02/2016 11:57:32 PM (9 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js
r37301 r37630 159 159 160 160 editToolbar.on( 'show', function() { 161 if ( ! tinymce.$( document.body ).hasClass( 'modal-open' )) {161 if ( typeof window.wpLink === 'undefiend' || ! window.wpLink.modalOpen ) { 162 162 window.setTimeout( function() { 163 163 var element = editToolbar.$el.find( 'input.ui-autocomplete-input' )[0], … … 476 476 $linkNode, href, edit; 477 477 478 if ( t inymce.$( document.body ).hasClass( 'modal-open' )) {478 if ( typeof window.wpLink !== 'undefiend' && window.wpLink.modalOpen ) { 479 479 editToolbar.tempHide = true; 480 480 return; -
trunk/src/wp-includes/js/wplink.js
r37621 r37630 20 20 lastSearch: '', 21 21 textarea: '', 22 modalOpen: false, 22 23 23 24 init: function() { … … 98 99 99 100 $body.addClass( 'modal-open' ); 101 wpLink.modalOpen = true; 100 102 linkNode = node; 101 103 … … 275 277 close: function( reset ) { 276 278 $( document.body ).removeClass( 'modal-open' ); 279 wpLink.modalOpen = false; 277 280 278 281 if ( reset !== 'noReset' ) {
Note: See TracChangeset
for help on using the changeset viewer.