var wpCookies = { // The following functions are from Cookie.js class in TinyMCE, Moxiecode, used under LGPL. each : function(o, cb, s) { var n, l; if (!o) return 0; s = s || o; if (typeof(o.length) != 'undefined') { for (n=0, l = o.length; n H ) { o = (t+h+10) - H; m.css({'marginTop':'-'+o+'px'}); } else if ( m.css('marginTop') ) { m.css({'marginTop':''}) } m.addClass('sub-open'); }, out: function(){ $(this).find('.wp-submenu').removeClass('sub-open').css({'marginTop':''}); }, timeout: 220, sensitivity: 8, interval: 100 }); } }, favorites : function() { $('#favorite-inside').width($('#favorite-actions').width()-4); $('#favorite-toggle, #favorite-inside').bind( 'mouseenter', function(){$('#favorite-inside').removeClass('slideUp').addClass('slideDown'); setTimeout(function(){if ( $('#favorite-inside').hasClass('slideDown') ) { $('#favorite-inside').slideDown(100); $('#favorite-first').addClass('slide-down'); }}, 200) } ); $('#favorite-toggle, #favorite-inside').bind( 'mouseleave', function(){$('#favorite-inside').removeClass('slideDown').addClass('slideUp'); setTimeout(function(){if ( $('#favorite-inside').hasClass('slideUp') ) { $('#favorite-inside').slideUp(100, function(){ $('#favorite-first').removeClass('slide-down'); } ); }}, 300) } ); } }; $(document).ready(function(){adminMenu.init();}); })(jQuery); (function($){ // show/hide/save table columns columns = { init : function(page) { $('.hide-column-tog').click( function() { var column = $(this).val(), show = $(this).attr('checked'); if ( show ) { $('.column-' + column).show(); } else { $('.column-' + column).hide(); } columns.save_manage_columns_state(page); } ); }, save_manage_columns_state : function(page) { var hidden = $('.manage-column').filter(':hidden').map(function() { return this.id; }).get().join(','); $.post('admin-ajax.php', { action: 'hidden-columns', hidden: hidden, hiddencolumnsnonce: $('#hiddencolumnsnonce').val(), page: page }); } } })(jQuery); jQuery(document).ready(function($){ if ( 'undefined' != typeof google && google.gears ) return; var gf = false; if ( 'undefined' != typeof GearsFactory ) { gf = new GearsFactory(); } else { try { gf = new ActiveXObject('Gears.Factory'); if ( factory.getBuildInfo().indexOf('ie_mobile') != -1 ) gf.privateSetGlobalObject(this); } catch (e) { if ( ( 'undefined' != typeof navigator.mimeTypes ) && navigator.mimeTypes['application/x-googlegears'] ) { gf = document.createElement("object"); gf.style.display = "none"; gf.width = 0; gf.height = 0; gf.type = "application/x-googlegears"; document.documentElement.appendChild(gf); } } } if ( gf && gf.hasPermission ) return; $('.turbo-nag').show(); });