隐藏标签按钮

hotfix/远程访问多媒体中心
lmr@hainatravel.com 8 years ago
parent 0a2d2c1555
commit 5152158abc

@ -534,9 +534,11 @@
<div class="col-xs-7">
<label>
信息标题 &nbsp;
<?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,7 +1325,9 @@
$('.newTagI').on('blur', function() {
$(this).hide();
if ($(this).val()) {
var yes = confirm("确认添加新标签:" + $(this).val())
//添加标签
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);
@ -1339,6 +1343,9 @@
}
}, 'json');
$('.newTagA').html($(this).val()).show();
} else {
$('.newTagA').show();
}
} else {
$('.newTagA').html(' + 新标签 ').show();
}

Loading…
Cancel
Save