mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user