Passed
Push — master ( 2256c9...a580d9 )
by Fernando
02:21
created

assets/js/admin/lsx-admin.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 12
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
nc 1
dl 0
loc 12
rs 10
c 1
b 0
f 0
wmc 2
mnd 0
bc 2
fnc 2
bpm 1
cpm 1
noi 1
1
/**
2
 * Admin script.
3
 */
4
jQuery( function( $ ) {
5
6
	$( document ).on( 'click', '.lsx-theme-notice .notice-dismiss', function() {
7
		$.ajax( {
8
			url: ajaxurl,
0 ignored issues
show
Bug introduced by
The variable ajaxurl seems to be never declared. If this is a global, consider adding a /** global: ajaxurl */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
9
			data: {
10
				action: 'lsx_dismiss_theme_notice'
11
			}
12
		} );
13
	} );
14
15
} );
16