* Remove defaultChosenOptions.

This commit is contained in:
liugang
2018-07-12 09:17:50 +08:00
parent 2dc1aa7375
commit d7cd324f90
17 changed files with 51 additions and 54 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ function saveTemplate()
var defaultValue = $('#tplBox #template').val();
$('#tplBox').html(data);
if(data.indexOf('alert') >= 0) $('#tplBox #template').val(defaultValue);
$("#tplBox #template").chosen(defaultChosenOptions).on('chosen:showing_dropdown', function()
$("#tplBox #template").chosen().on('chosen:showing_dropdown', function()
{
var $this = $(this);
var $chosen = $this.next('.chosen-container').removeClass('chosen-up');