添加页面刷新事件

pull/41/head
devlike 2018-02-08 11:02:23 +08:00
parent 8477e6fafd
commit ba7199fce8
1 changed files with 10 additions and 0 deletions

View File

@ -126,6 +126,16 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
checkupdate('', true);
});
//刷新页面
$(document).on('click', "[data-toggle='refresh']",function(){
var contentwin = $('.content-wrapper').find('.tab-pane.active>iframe');
try{
contentwin.contentWindow.location.reload(true);
}catch(e){
$(contentwin).attr('src', $(contentwin).attr('src'));
}
});
//切换左侧sidebar显示隐藏
$(document).on("click fa.event.toggleitem", ".sidebar-menu li > a", function (e) {
$(".sidebar-menu li").removeClass("active");