wp/wp-includes/js/wpdialog.js
changeset 9 177826044cd9
parent 5 5e2f62d02dcd
child 21 48c4eec2b7e6
--- a/wp/wp-includes/js/wpdialog.js	Mon Oct 14 18:06:33 2019 +0200
+++ b/wp/wp-includes/js/wpdialog.js	Mon Oct 14 18:28:13 2019 +0200
@@ -1,3 +1,10 @@
+/**
+ * @output wp-includes/js/wpdialog.js
+ */
+
+/*
+ * Wrap the jQuery UI Dialog open function remove focus from tinyMCE.
+ */
 ( function($) {
 	$.widget('wp.wpdialog', $.ui.dialog, {
 		open: function() {
@@ -8,6 +15,7 @@
 
 			// Open the dialog.
 			this._super();
+
 			// WebKit leaves focus in the TinyMCE editor unless we shift focus.
 			this.element.focus();
 			this._trigger('refresh');