Collapse crazyhorse to trunk. Incoming! see #7552

git-svn-id: https://develop.svn.wordpress.org/trunk@8691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-08-20 21:42:31 +00:00
parent 2f3d21476b
commit 6db75e59d4
62 changed files with 2541 additions and 1122 deletions
+34 -1
View File
@@ -4,11 +4,20 @@ jQuery(document).ready( function() {
// Reveal
jQuery('.wp-no-js-hidden').removeClass( 'wp-no-js-hidden' );
// show things that should be visible, hide what should be hidden
jQuery('.hide-if-no-js').show();
jQuery('.hide-if-js').hide();
// Basic form validation
if ( ( 'undefined' != typeof wpAjax ) && jQuery.isFunction( wpAjax.validateForm ) ) {
jQuery('form.validate').submit( function() { return wpAjax.validateForm( jQuery(this) ); } );
}
jQuery('a.no-crazy').click( function() {
alert( "This feature isn't enabled in this prototype." );
return false;
} );
});
(function(JQ) {
@@ -25,7 +34,7 @@ jQuery(document).ready( function() {
el.find('img').removeAttr('alt');
el.mouseover(function(e) {
txt = el.attr('tip'), o = el.offset();;
txt = el.attr('tip'), o = el.offset();
clearTimeout(TT.sD);
TT.find('p').html(txt);
@@ -42,4 +51,28 @@ jQuery(document).ready( function() {
}
}(jQuery));
jQuery( function($) {
var menuToggle = function(ul, effect) {
if ( !effect ) {
effect = 'slideToggle';
}
ul[effect]().parent().toggleClass( 'wp-menu-open' );
return false;
};
jQuery('#adminmenu li.wp-has-submenu > a').click( function() { return menuToggle( jQuery(this).siblings('ul') ); } );
jQuery('#dashmenu li.wp-has-submenu').bind( 'mouseenter mouseleave', function() { return menuToggle( jQuery(this).children('ul'), 'toggle' ); } );
// Temp
if ( !$('#post-search, #widget-search').size() ) {
$('#wphead').append( '<p id="post-search-prep"><input id="post-search-input" type="text" /><input class="button" type="button" value="Search" /></p>' );
}
// Temp 2
var minH = $(window).height()-185+"px"
$('#wpbody-content').css("min-height", minH);
} );
jQuery(function(){jQuery('#media-buttons a').tTips();});