mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
Ensure js objects are declared early
git-svn-id: http://svn.automattic.com/wordpress/trunk@9780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e00551ef6c
commit
e4c2127e20
@ -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