File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 12001200 }
12011201 return false // return false to click event to prevent default
12021202 } )
1203- // add the "+ group" button
1204- const groupEditButton = $ ( `<a href="#" class="editor-button editor-button-small nr-db-sb-list-header-button" title="${ c_ ( 'layout.addGroup' ) } "><i class="fa fa-plus"></i></a>` ) . appendTo ( btnGroup )
1205- groupEditButton . on ( 'click' , function ( evt ) {
1206- list . editableList ( 'addItem' )
1207- evt . preventDefault ( )
1208- } )
12091203 }
12101204
1205+ // add the "+ group" button
1206+ const groupEditButton = $ ( `<a href="#" class="editor-button editor-button-small nr-db-sb-list-header-button" title="${ c_ ( 'layout.addGroup' ) } "><i class="fa fa-plus"></i></a>` ) . appendTo ( btnGroup )
1207+ groupEditButton . on ( 'click' , function ( evt ) {
1208+ list . editableList ( 'addItem' )
1209+ evt . preventDefault ( )
1210+ } )
1211+
12111212 // if this is a group & it is not an unattached group, add the "_ spacer" button
12121213 if ( item . type === 'ui-group' && ! ! item . page ) {
12131214 // add the "+ spacer" button
You can’t perform that action at this time.
0 commit comments