|
|
|
@ -534,9 +534,11 @@
|
|
|
|
|
<div class="col-xs-7">
|
|
|
|
|
<label>
|
|
|
|
|
信息标题
|
|
|
|
|
<?php if (is_series_site()) { ?>
|
|
|
|
|
<button type="button" class="btn btn-xs" data-toggle="modal" data-target="#tagM">
|
|
|
|
|
+ 标签(国际站)
|
|
|
|
|
</button>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-24">
|
|
|
|
@ -1261,8 +1263,8 @@
|
|
|
|
|
<?php //标签模态框 ?>
|
|
|
|
|
<div class="modal fade" id="tagM" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
.tagLabel {background: #eee;padding: 5px 15px 5px 35px!important;border-radius: 5px;border: 1px solid #aaa; margin-right:2px;}
|
|
|
|
|
.myTag {background: darkcyan; color:#fff; border-color: #000;}
|
|
|
|
|
.tagLabel {background: #eee;padding: 5px 15px 5px 35px!important;border-radius: 5px;border: 1px solid #aaa; margin-right:2px;box-shadow: 0px 0px 2px #ddd;}
|
|
|
|
|
.myTag {background: #d2eafb; color:#108ee9; border-color: #108ee9;}
|
|
|
|
|
.tagLabel.newLabel {padding: 5px 10px!important;border: 1px dashed #000;}
|
|
|
|
|
</style>
|
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
@ -1323,22 +1325,27 @@
|
|
|
|
|
$('.newTagI').on('blur', function() {
|
|
|
|
|
$(this).hide();
|
|
|
|
|
if ($(this).val()) {
|
|
|
|
|
var yes = confirm("确认添加新标签:" + $(this).val())
|
|
|
|
|
//添加标签
|
|
|
|
|
$.post('/info.php/info_tags/add_tag/', {'title':$(this).val(),'memo':'test'}, function(json) {
|
|
|
|
|
if (json.statu != '-1') {
|
|
|
|
|
$clone = $('.tagLabel').eq(0).clone(true);
|
|
|
|
|
$clone.removeClass('myTag');
|
|
|
|
|
$clone.find('input').attr('data-it-id', json.message).removeAttr('checked');
|
|
|
|
|
$clone.find('span').html($('.newTagI').val());
|
|
|
|
|
$('.newLabel').before($clone);
|
|
|
|
|
//归零
|
|
|
|
|
$('.newTagI').val('').hide();
|
|
|
|
|
$('.newTagA').html(' + 新标签 ').show();
|
|
|
|
|
} else {
|
|
|
|
|
alert('增加标签失败!');
|
|
|
|
|
}
|
|
|
|
|
}, 'json');
|
|
|
|
|
$('.newTagA').html($(this).val()).show();
|
|
|
|
|
if (yes) {
|
|
|
|
|
$.post('/info.php/info_tags/add_tag/', {'title':$(this).val(),'memo':'test'}, function(json) {
|
|
|
|
|
if (json.statu != '-1') {
|
|
|
|
|
$clone = $('.tagLabel').eq(0).clone(true);
|
|
|
|
|
$clone.removeClass('myTag');
|
|
|
|
|
$clone.find('input').attr('data-it-id', json.message).removeAttr('checked');
|
|
|
|
|
$clone.find('span').html($('.newTagI').val());
|
|
|
|
|
$('.newLabel').before($clone);
|
|
|
|
|
//归零
|
|
|
|
|
$('.newTagI').val('').hide();
|
|
|
|
|
$('.newTagA').html(' + 新标签 ').show();
|
|
|
|
|
} else {
|
|
|
|
|
alert('增加标签失败!');
|
|
|
|
|
}
|
|
|
|
|
}, 'json');
|
|
|
|
|
$('.newTagA').html($(this).val()).show();
|
|
|
|
|
} else {
|
|
|
|
|
$('.newTagA').show();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$('.newTagA').html(' + 新标签 ').show();
|
|
|
|
|
}
|
|
|
|
|