Skip to content
This repository was archived by the owner on Nov 6, 2019. It is now read-only.

Commit e9542b0

Browse files
committed
Cosmetic changes + also added select2 for "Summarize by" field.
1 parent ca31be7 commit e9542b0

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

admin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ window.camptix = window.camptix || { models: {}, views: {}, collections: {} };
586586
return;
587587
}
588588
$( '.tix-setup-form select' ).select2();
589+
$( 'select[name=tix_summarize_by]' ).select2();
589590
});
590591

591592
});

camptix.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,10 @@ var docCookies={getItem:function(e){return decodeURIComponent(document.cookie.re
228228

229229
$( document ).ready( lazyLoad.init );
230230

231-
232-
/**
233-
* Use select2 for dropdown.
234-
*/
235-
$( document ).ready( function loadSelect2Country() {
231+
$( document ).ready( function loadSelect2() {
236232
if( ! tix.length || ! $.fn.hasOwnProperty( 'select2' ) )
237233
return;
238234
$( '#tix .tix-select2-enabled select' ).select2();
239-
})
235+
})
240236

241237
}(jQuery));

camptix.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,8 +1505,8 @@ function menu_setup_controls() {
15051505
__( "This will allow your customers to refund their tickets purchase by filling out a simple refund form.", 'camptix' )
15061506
);
15071507
$this->add_settings_field_helper( 'select2_enabled', __( 'Enable Select2', 'camptix' ), 'field_enable_select2', false,
1508-
__( "This will render all the dropdown answers as a searchable dropdown instead of normal select dropdown", 'camptix' )
1509-
);
1508+
__( "This will render all the dropdown answers as a searchable dropdown instead of normal select dropdown", 'camptix' )
1509+
);
15101510

15111511
break;
15121512
case 'payment':

0 commit comments

Comments
 (0)