mirror of https://gitee.com/karson/fastadmin.git
添加页面刷新事件
parent
8477e6fafd
commit
ba7199fce8
|
|
@ -126,6 +126,16 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
|
||||||
checkupdate('', true);
|
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显示隐藏
|
//切换左侧sidebar显示隐藏
|
||||||
$(document).on("click fa.event.toggleitem", ".sidebar-menu li > a", function (e) {
|
$(document).on("click fa.event.toggleitem", ".sidebar-menu li > a", function (e) {
|
||||||
$(".sidebar-menu li").removeClass("active");
|
$(".sidebar-menu li").removeClass("active");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue