wpLink: add custom open and close events, props bradyvercher, fixes #28095.
Built from https://develop.svn.wordpress.org/trunk@29335 git-svn-id: http://core.svn.wordpress.org/trunk@29115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8253a54416
commit
2dda137191
|
@ -112,6 +112,7 @@ var wpLink;
|
||||||
inputs.backdrop.show();
|
inputs.backdrop.show();
|
||||||
|
|
||||||
wpLink.refresh();
|
wpLink.refresh();
|
||||||
|
$( document ).trigger( 'wplink-open', inputs.wrap );
|
||||||
},
|
},
|
||||||
|
|
||||||
isMCE: function() {
|
isMCE: function() {
|
||||||
|
@ -178,6 +179,7 @@ var wpLink;
|
||||||
|
|
||||||
inputs.backdrop.hide();
|
inputs.backdrop.hide();
|
||||||
inputs.wrap.hide();
|
inputs.wrap.hide();
|
||||||
|
$( document ).trigger( 'wplink-close', inputs.wrap );
|
||||||
},
|
},
|
||||||
|
|
||||||
getAttrs: function() {
|
getAttrs: function() {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue