Add chosen selectors to player edit screen, style installation notice

This commit is contained in:
Brian Miyaji
2014-02-18 13:22:51 +11:00
parent 3bfeaef612
commit 94ac918e0c
7 changed files with 286 additions and 131 deletions

View File

@@ -10,7 +10,16 @@ jQuery(document).ready(function($){
});
// Chosen select
$(".chosen-select").chosen();
$(".chosen-select").chosen({
allow_single_deselect: true,
single_backstroke_delete: false
});
$('#poststuff #sp_detailsdiv .sp-current-team').on('change', function(evt, params) {
$el = $(this).closest('#sp_detailsdiv').find('.sp-team');
$el.find('option[value='+$(this).val()+']').attr('selected', true);
$el.trigger('chosen:updated');
});
// Auto key placeholder
$("#poststuff #title").on("keyup", function() {