Ensure js objects are declared early
git-svn-id: https://develop.svn.wordpress.org/trunk@9780 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3b9b10645f
commit
8f213372ea
@ -214,8 +214,8 @@ jQuery(document).ready( function($) {
|
||||
});
|
||||
});
|
||||
|
||||
var showNotice, adminMenu, columns;
|
||||
(function($){
|
||||
|
||||
// stub for doing better warnings
|
||||
showNotice = {
|
||||
warn : function(text) {
|
||||
@ -229,7 +229,9 @@ showNotice = {
|
||||
alert(text);
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
||||
|
||||
(function($){
|
||||
// sidebar admin menu
|
||||
adminMenu = {
|
||||
|
||||
@ -319,7 +321,9 @@ adminMenu = {
|
||||
};
|
||||
|
||||
$(document).ready(function(){adminMenu.init();});
|
||||
})(jQuery);
|
||||
|
||||
(function($){
|
||||
// show/hide/save table columns
|
||||
columns = {
|
||||
init : function(page) {
|
||||
|
@ -41,7 +41,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
$scripts->base_url = $guessurl;
|
||||
$scripts->default_version = get_bloginfo( 'version' );
|
||||
|
||||
$scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081111' );
|
||||
$scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081118' );
|
||||
$scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' );
|
||||
|
||||
$scripts->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '20081103' );
|
||||
|
Loading…
Reference in New Issue
Block a user