Tidy up player edit screen and add custom menu icons

This commit is contained in:
Brian Miyaji
2014-02-18 19:33:06 +11:00
parent f07f60d593
commit 1b30d3a4ce
19 changed files with 293 additions and 209 deletions

View File

@@ -15,9 +15,9 @@ jQuery(document).ready(function($){
single_backstroke_delete: false
});
$('#poststuff #sp_detailsdiv .sp-current-team').on('change', function(evt, params) {
$('#poststuff #sp_detailsdiv .sp-current-team').on('change', function() {
$el = $(this).closest('#sp_detailsdiv').find('.sp-team');
$el.find('option[value='+$(this).val()+']').attr('selected', true);
$el.find('option[value='+$(this).val()+']').attr('selected', false);
$el.trigger('chosen:updated');
});