提交 b4cc9572 编写于 作者: E eddy8

Merge branch 'master' into laravel-6.x

......@@ -21,7 +21,7 @@ class UEditorController extends NEditorController
* @param Request $request
* @return array|mixed
*/
public function serve(Request $request)
public function serve(Request $request, $type = null)
{
$action = $request->input('action');
if (!method_exists(\self::class, $action)) {
......
......@@ -503,6 +503,7 @@
//监听提交
form.on('submit(formAdminUser)', function(data){
window.onbeforeunload = null;
window.form_submit = $('#submitBtn');
form_submit.prop('disabled', true);
$.ajax({
......@@ -540,6 +541,16 @@
console.log(previewArr.join(','));
$("input[name=" + inputName + ']').val(previewArr.join(','));
});
window.onbeforeunload = function (e) {
e = e || window.event;
// 兼容IE8和Firefox 4之前的版本
if (e) {
e.returnValue = '确定离开当前页面吗?';
}
// Chrome, Safari, Firefox 4+, Opera 12+ , IE 9+
return '确定离开当前页面吗?';
};
</script>
<script src="/public/vendor/zoom/transition.js"></script>
<script src="/public/vendor/zoom/zoom.min.js"></script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册