Completed
Pull Request — master (#73)
by Maria Daniel Deepak
06:45
created

$(document).on   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
( function( $ ) {
2
3
	$( document ).ready(function() {
4
		$( '#search_id-search-date-input' ).datepicker({
5
			changeMonth: true,
6
			changeYear: true,
7
			dateFormat: 'yy-mm-dd'
8
		});
9
	});
10
11
	var tabsInsertedEvent = 'tabs_elem_inserted';
12
13
	insertionQ( '#tabs' ).every(function ( element ) {
14
		$( element ).trigger( tabsInsertedEvent )
15
	});
16
17
	$( document ).on( tabsInsertedEvent, function() {
18
		$( '#tabs' ).tabs();
19
	});
20
21
22
})( jQuery );