mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Bring out the shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@17228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
}
|
||||
|
||||
#wp-link ol,
|
||||
#wp-link ul {
|
||||
#wp-link ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#wp-link input[type="text"] {
|
||||
|
||||
@@ -251,14 +251,14 @@ var wpLink;
|
||||
// We're about to toggle visibility; it's currently the opposite
|
||||
visible = !panel.is(':visible'),
|
||||
win = $(window);
|
||||
|
||||
|
||||
$(this).toggleClass('toggle-arrow-active', visible);
|
||||
|
||||
|
||||
inputs.dialog.height('auto');
|
||||
panel.slideToggle( 300, function() {
|
||||
setUserSetting('wplink', visible ? '1' : '0');
|
||||
inputs[ visible ? 'search' : 'url' ].focus();
|
||||
|
||||
|
||||
// Move the box if the box is now expanded, was opened in a collapsed state,
|
||||
// and if it needs to be moved. (Judged by bottom not being positive or
|
||||
// bottom being smaller than top.)
|
||||
@@ -266,7 +266,7 @@ var wpLink;
|
||||
top = widget.offset().top,
|
||||
bottom = top + widget.outerHeight(),
|
||||
diff = bottom - win.height();
|
||||
|
||||
|
||||
if ( diff > scroll ) {
|
||||
widget.animate({'top': diff < top ? top - diff : scroll }, 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user