Index: wp-admin/edit-pages.php
===================================================================
--- wp-admin/edit-pages.php	(revision 9338)
+++ wp-admin/edit-pages.php	(working copy)
@@ -68,7 +68,9 @@
 if ( empty($title) )
 	$title = __('Edit Pages');
 $parent_file = 'edit.php';
+add_thickbox();
 wp_enqueue_script('admin-forms');
+wp_enqueue_script('inline-preview');
 wp_enqueue_script('inline-edit-post');
 wp_enqueue_script('pages');
 
Index: wp-admin/edit.php
===================================================================
--- wp-admin/edit.php	(revision 9338)
+++ wp-admin/edit.php	(working copy)
@@ -69,7 +69,9 @@
 if ( empty($title) )
 	$title = __('Edit Posts');
 $parent_file = 'edit.php';
+add_thickbox();
 wp_enqueue_script('admin-forms');
+wp_enqueue_script('inline-preview');
 wp_enqueue_script('inline-edit-post');
 wp_enqueue_script('posts');
 
Index: wp-admin/includes/template.php
===================================================================
--- wp-admin/includes/template.php	(revision 9338)
+++ wp-admin/includes/template.php	(working copy)
@@ -1277,9 +1277,10 @@
 				$actions['inline hide-if-no-js'] = '<a href="#" class="editinline" title="' . attribute_escape(__('Edit this post inline')) . '">' . __('Quick Edit') . '</a>';
 				$actions['delete'] = "<a class='submitdelete' title='" . attribute_escape(__('Delete this post')) . "' href='" . wp_nonce_url("post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
 			}
-			if ( in_array($post->post_status, array('pending', 'draft')) )
-				$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attribute_escape(sprintf(__('Preview "%s"'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';
-			else
+			if ( in_array($post->post_status, array('pending', 'draft')) ) {
+				$preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => get_option('template') , 'stylesheet' => get_option('stylesheet'), 'TB_iframe' => 'true', 'width' => 600, 'height' => 400 ), get_permalink($post->ID) ) );
+				$actions['view'] = '<a class="thickbox" href="' . $preview_link . '" title="' . attribute_escape(sprintf(__('Preview "%s"'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';
+			} else
 				$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
 			$action_count = count($actions);
 			$i = 0;
@@ -1461,9 +1462,10 @@
 		$actions['edit'] = '<a href="' . $edit_link . '" title="' . attribute_escape(__('Edit this page')) . '">' . __('Edit') . '</a>';
 		$actions['inline'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>';
 		$actions['delete'] = "<a class='submitdelete' title='" . attribute_escape(__('Delete this page')) . "' href='" . wp_nonce_url("page.php?action=delete&amp;post=$page->ID", 'delete-page_' . $page->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $page->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $page->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
-		if ( in_array($post->post_status, array('pending', 'draft')) )
-			$actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attribute_escape(sprintf(__('Preview "%s"'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';
-		else
+		if ( in_array($post->post_status, array('pending', 'draft')) ) {
+			$preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => get_option('template') , 'stylesheet' => get_option('stylesheet'), 'TB_iframe' => 'true', 'width' => 600, 'height' => 400 ), get_permalink($page->ID) ) );
+			$actions['view'] = '<a class="thickbox" href="' . $preview_link . '" title="' . attribute_escape(sprintf(__('Preview "%s"'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';
+		} else
 			$actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
 		$action_count = count($actions);
 		$i = 0;
Index: wp-includes/script-loader.php
===================================================================
--- wp-includes/script-loader.php	(revision 9338)
+++ wp-includes/script-loader.php	(working copy)
@@ -242,7 +242,8 @@
 		));
 
 		$scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' );
-
+		$scripts->add( 'inline-preview', '/wp-admin/js/inline-preview.js', array( 'thickbox', 'jquery' ), '20081025' );
+		
 		$scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081023' );
 		$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
 			'error' => __('Error while saving the changes.')
