ZhiYeJianKang_PeiXun/Song.Site/Manage/Course/Scripts/Outline_Video.js
2025-02-20 15:41:53 +08:00

38 lines
1.1 KiB
JavaScript

$(function () {
_contentsLoyout();
//刷新缓存
var $notify = window.ELEMENT.Notification;
$api.put('Outline/VideoEvents', { 'olid': $().getPara("id")}).then(function (req) {
if (req.data.success) {
var result = req.data.result;
$notify({ message: '缓存刷新成功', type: 'success',position: 'bottom-left' });
} else {
throw req.data.message;
}
}).catch(function (err) {
alert(err);
});
});
//当窗口大变化时
$(window).resize(
function () {
}
);
//界面始初化布局
function _contentsLoyout() {
//弹出窗口
$("a[btnType=openwin]").click(function () {
var href = $(this).attr("href");
var title = $(this).attr("title");
new top.PageBox(title, href, 640, 480, null, window.name).Open();
return false;
});
$("input[btnType=openwin]").click(function () {
var a = $(this).parents("tr").find("a[btnType=openwin]");
var href = a.attr("href");
var title = a.attr("title");
new top.PageBox(title, href, 640, 480, null, window.name).Open();
return false;
});
}