summaryrefslogtreecommitdiffstats
path: root/wp-content
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-06-11 19:50:49 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-06-11 19:50:49 +0000
commit29f69459ff1f562f09f7cfc0fdfdd00089a5a14e (patch)
tree6b59e87017f0077055c7f5dbb1288961f6564677 /wp-content
parent49b78829f4c04b8a507d66ebc0af4dd35e0682f2 (diff)
downloadwordpress-mu-29f69459ff1f562f09f7cfc0fdfdd00089a5a14e.tar.gz
wordpress-mu-29f69459ff1f562f09f7cfc0fdfdd00089a5a14e.tar.xz
wordpress-mu-29f69459ff1f562f09f7cfc0fdfdd00089a5a14e.zip
Load jquery the right way
Added image file git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@998 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-content')
-rw-r--r--wp-content/mu-plugins/bullet_arrow_down.gifbin0 -> 176 bytes
-rw-r--r--wp-content/mu-plugins/dashboardswitcher.php12
2 files changed, 8 insertions, 4 deletions
diff --git a/wp-content/mu-plugins/bullet_arrow_down.gif b/wp-content/mu-plugins/bullet_arrow_down.gif
new file mode 100644
index 0000000..9d691d1
--- /dev/null
+++ b/wp-content/mu-plugins/bullet_arrow_down.gif
Binary files differ
diff --git a/wp-content/mu-plugins/dashboardswitcher.php b/wp-content/mu-plugins/dashboardswitcher.php
index 74263b0..1245c0f 100644
--- a/wp-content/mu-plugins/dashboardswitcher.php
+++ b/wp-content/mu-plugins/dashboardswitcher.php
@@ -1,5 +1,12 @@
<?php
+add_action( 'admin_print_scripts', 'switcher_scripts' );
+
+function switcher_scripts() {
+ wp_enqueue_script('jquery');
+}
+
+
function switcher_css() {
?>
<style type="text/css">
@@ -35,16 +42,13 @@ function switcher_css() {
z-index: 1;
}
</style>
-<?php
- wp_enqueue_script('interface');
-?>
<script type="text/javascript">
jQuery( function($) {
var switchTime;
var w = false;
var h = $( '#blog-title' )
.css({
- background: 'transparent url( images/bullet_arrow_down.gif ) no-repeat scroll 100% .2em;',
+ background: 'transparent url( ../wp-content/mu-plugins/bullet_arrow_down.gif ) no-repeat scroll 100% .2em;',
padding: '0 25px 2px 5px',
cursor: 'pointer',
border: '1px solid #14568a',