Skip to content

Commit

Permalink
Handling bootstrap-select
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Apr 28, 2016
1 parent e1f6125 commit da8d621
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/fields/fieldSelectEx.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,12 @@
model: function() {
if ($.fn.selectpicker)
$(this.$el).selectpicker("refresh");
else
console.warn("selectpicker is not loaded!");
}
},
ready() {
if ($.fn.selectpicker)
if ($.fn.selectpicker)
$(this.$el).selectpicker("destroy").selectpicker(this.schema.selectOptions);
else
console.warn("selectpicker is not loaded!");
}
}
</script>
Expand Down

0 comments on commit da8d621

Please sign in to comment.