Skip to content

Commit

Permalink
Merge branch 'dev-hiresuit' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
nithinjohn22 committed Jan 9, 2025
2 parents 1a6877e + c64b731 commit cc95457
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions admin/class-awsm-job-openings-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public function __construct() {
add_action( 'awsm_job_applicant_profile_details_resume_preview', array( $this, 'docs_viewer_handle' ) );
add_filter( 'post_row_actions', array( $this, 'awsm_job_application_row_actions_label' ), 10, 2 );
add_filter( 'wp_untrash_post_status', array( $this, 'awsm_job_application_restore_post_to_previous_status' ), 10, 3 );
add_action( 'admin_enqueue_scripts', array( $this, 'disable_drag_metabox' ) );
add_filter( 'post_class', array( $this, 'awsm_add_unread_application_class' ), 10, 3 );

}
Expand Down Expand Up @@ -336,18 +335,6 @@ public function awsm_job_application_restore_post_to_previous_status( $new_statu
return $new_status;
}

public function disable_drag_metabox() {
$screen = get_current_screen();
if ( $screen && $screen->post_type === 'awsm_job_application' ) {
wp_add_inline_style(
'wp-admin',
'#awsm-job-resume-preview {
pointer-events: none;
}'
);
}
}

public function awsm_add_unread_application_class( $classes, $class, $post_id ) {
if ( get_post_type( $post_id ) === 'awsm_job_application' ) {
$post_status = get_post_status( $post_id );
Expand Down

0 comments on commit cc95457

Please sign in to comment.