title: Adding a jQuery script to wordpress Admin
body: <p>I cannot for some reason get the wordpress /wp-admin pages to execute a simple query file.
  It only works if i deregister jquery in my functions.php within my theme folder, but then i must re-register all the jquery.ui files separately which is tedious. Im using wordpress 3.0 multisite installation. I'm trying not to touch the core wp files.</p>
  
  <p>It will show in the source and links to the file ok but won't execute the script.
  heres what i have in my functions.php:</p>
  
  <pre><code>function my_script() {
  if (!is_admin()) {
      wp_deregister_script('jquery');
      wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js', false, '1.4.4');
      wp_enqueue_script('jquery');
      wp_enqueue_script('custom_script', get_bloginfo('template_url').'/js/myScript.js', array('jquery'));
  }
  if(is_admin()){
      wp_enqueue_script('custom_admin_script',  get_bloginfo('template_url').'/js/admin_script.js', array('jquery'));
  }   }
  </code></pre>
  
  <p>add_action('init', 'my_script');</p>
  
  <p>Here's My jquery file (admin_script.js):</p>
  
  <pre><code>$(document).ready(function(){
  alert("Hello"); });
  </code></pre>
  
  <p>any help would be great.</p>