Code Duplication    Length = 10-11 lines in 2 locations

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 593-602 (lines=10) @@
590
591
592
593
	public function load_scripts_styles() {
594
		//style
595
		//wp_register_style('espresso_attendees', ATT_ASSETS_URL . 'espresso_attendees_admin.css', array(), EVENT_ESPRESSO_VERSION );
596
		wp_register_style('espresso_reg', REG_ASSETS_URL . 'espresso_registrations_admin.css', array('ee-admin-css'), EVENT_ESPRESSO_VERSION );
597
		wp_enqueue_style('espresso_reg');
598
599
		//script
600
		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);
601
		wp_enqueue_script('espresso_reg');
602
	}
603
604
605

admin_pages/events/Events_Admin_Page.core.php 1 location

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