个人维护网页增加清除所有缓存功能
This commit is contained in:
parent
d191da612c
commit
d84024aa19
|
@ -1,4 +1,23 @@
|
|||
.has-error input {
|
||||
.clearcache {
|
||||
position: absolute;
|
||||
right: 60px;
|
||||
font-size: 17px;
|
||||
color: #d9534f;
|
||||
margin-top: -1px;
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||
}
|
||||
|
||||
.clearcache:hover, .clearcache:focus {
|
||||
color: #c12e2a;
|
||||
}
|
||||
|
||||
.clearcache:active:hover {
|
||||
color: #ac2925;
|
||||
}
|
||||
|
||||
|
||||
.has-error input {
|
||||
background-repeat: no-repeat;
|
||||
background-image: url('../images/error.png');
|
||||
background-position: right 8px center;
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
var html = '<li class="list-primary"><i class="fa fa-ellipsis-v"></i><div class="task-title"><span class="task-title-sp tooltips" data-placement="right" title="{1}">{2}</span><span class="badge badge-sm label-success">{0}</span><span class="task-value tooltips" data-placement="top" data-original-title="{3}">{3}</span><div class="pull-right hidden-phone"><button class="btn btn-danger btn-xs fa fa-trash-o" data-key="{1}"></button></div></div></li>';
|
||||
|
||||
function listCache(options) {
|
||||
options = $.extend({ url: '../../CacheList.axd' }, options);
|
||||
$.ajax({
|
||||
url: options.url,
|
||||
type: 'POST',
|
||||
|
@ -62,6 +63,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
listCache({ url: '../../CacheList.axd' });
|
||||
$('a.fa-refresh').click(function () { listCache({ url: '../../CacheList.axd' }); });
|
||||
listCache();
|
||||
$('#refreshCache').click(function () { listCache(); });
|
||||
$('#clearCache').click(function () { listCache({ url: '../../CacheList.axd?clear=clear' }); });
|
||||
})
|
|
@ -43,7 +43,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">网站缓存<a href="javascript:;" class="pull-right fa fa-refresh" title="点击刷新"></a></div>
|
||||
<div class="panel-heading">网站缓存<a id="clearCache" href="#" class="clearcache fa fa-times-circle-o" title="全部清除(WebAdmin可用)"></a><a id="refreshCache" href="#" class="pull-right fa fa-refresh" title="点击刷新"></a></div>
|
||||
<div class="panel-body">
|
||||
<div class="tasks-widget">
|
||||
<ul id="sortable" class="task-list ui-sortable"></ul>
|
||||
|
|
Loading…
Reference in New Issue