Bring out the shears.

git-svn-id: https://develop.svn.wordpress.org/trunk@17228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-01-06 04:11:14 +00:00
parent 9908d4ae83
commit eba71eb7c0
26 changed files with 72 additions and 72 deletions
@@ -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);
}
+2 -2
View File
@@ -323,7 +323,7 @@ wpList = {
process: function(el) {
var list = this,
$el = $(el || document);
$el.delegate( "form[class^=add:" + list.id + ":]", 'submit', function(){
return list.wpList.add(this);
});
@@ -331,7 +331,7 @@ wpList = {
$el.delegate( "[class^=add:" + list.id + ":]:not(form)", 'click', function(){
return list.wpList.add(this);
});
$el.delegate( "[class^=delete:" + list.id + ":]", 'click', function(){
return list.wpList.del(this);
});