]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/wplink.js
Wordpress 3.6
[autoinstalls/wordpress.git] / wp-includes / js / wplink.js
index c52d2a197675b4ae270bdb58e652c22c59c48ba9..232fd4e2f93f2d4bab79868ab5994c77c8edaa67 100644 (file)
@@ -71,8 +71,7 @@ var wpLink;
                                        width: 480,
                                        height: 'auto',
                                        modal: true,
-                                       dialogClass: 'wp-dialog',
-                                       zIndex: 300000
+                                       dialogClass: 'wp-dialog'
                                });
                        }
 
@@ -114,8 +113,7 @@ var wpLink;
                                inputs.url.val( ed.dom.getAttrib(e, 'href') );
                                inputs.title.val( ed.dom.getAttrib(e, 'title') );
                                // Set open in new tab.
-                               if ( "_blank" == ed.dom.getAttrib(e, 'target') )
-                                       inputs.openInNewTab.prop('checked', true);
+                               inputs.openInNewTab.prop('checked', ( "_blank" == ed.dom.getAttrib( e, 'target' ) ) );
                                // Update save prompt.
                                inputs.submit.val( wpLinkL10n.update );