Code Duplication    Length = 10-11 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 533-543 (lines=11) @@
530
	 * enqueuing scripts and styles specific to this view
531
	 * @return void
532
	 */
533
	public function load_scripts_styles_edit() {
534
		//styles
535
		wp_enqueue_style('espresso-ui-theme');
536
		wp_register_style('event-editor-css', EVENTS_ASSETS_URL . 'event-editor.css', array('ee-admin-css'), EVENT_ESPRESSO_VERSION );
537
		wp_enqueue_style('event-editor-css');
538
539
		//scripts
540
		wp_register_script('event-datetime-metabox', EVENTS_ASSETS_URL . 'event-datetime-metabox.js', array('event_editor_js', 'ee-datepicker'), EVENT_ESPRESSO_VERSION );
541
		wp_enqueue_script('event-datetime-metabox');
542
543
	}
544
545
546

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 559-568 (lines=10) @@
556
557
558
559
	public function load_scripts_styles() {
560
		//style
561
		//wp_register_style('espresso_attendees', ATT_ASSETS_URL . 'espresso_attendees_admin.css', array(), EVENT_ESPRESSO_VERSION );
562
		wp_register_style('espresso_reg', REG_ASSETS_URL . 'espresso_registrations_admin.css', array('ee-admin-css'), EVENT_ESPRESSO_VERSION );
563
		wp_enqueue_style('espresso_reg');
564
565
		//script
566
		wp_register_script('espresso_reg', REG_ASSETS_URL . 'espresso_registrations_admin.js', array('jquery-ui-datepicker', 'jquery-ui-draggable', 'ee_admin_js'), EVENT_ESPRESSO_VERSION, TRUE);
567
		wp_enqueue_script('espresso_reg');
568
	}
569
570
571