|
@@ -82,15 +82,16 @@ jQuery( function() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 标签
|
|
// 标签
|
|
|
- if($('.js-tags-input')[0]) {
|
|
|
|
|
- $('.js-tags-input').tagsInput({
|
|
|
|
|
- height: '36px',
|
|
|
|
|
|
|
+ $('.js-tags-input').each(function() {
|
|
|
|
|
+ var $this = $(this);
|
|
|
|
|
+ $this.tagsInput({
|
|
|
|
|
+ height: $this.data('height') ? $this.data('height') : '38px',
|
|
|
width: '100%',
|
|
width: '100%',
|
|
|
- defaultText: $('.js-tags-input').attr("placeholder"),
|
|
|
|
|
|
|
+ defaultText: $this.attr("placeholder"),
|
|
|
removeWithBackspace: true,
|
|
removeWithBackspace: true,
|
|
|
delimiter: [',']
|
|
delimiter: [',']
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
// 时间选择
|
|
// 时间选择
|
|
|
jQuery('.js-datetimepicker').each(function() {
|
|
jQuery('.js-datetimepicker').each(function() {
|