<?php
function admin_enqueue_script($hook) {
    if( 'post.php' == $hook ){
    	wp_enqueue_script( 'haet_admin_edit', get_stylesheet_directory_uri().'/js/admin_edit.js' );
    	wp_localize_script( 'haet_admin_edit', 'ajax_object',
        	array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
    }
	return; 	
}
add_action( 'admin_enqueue_scripts', 'admin_enqueue_script' );
?>