Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
556b8107
Commit
556b8107
authored
Oct 26, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
防止误操作,在上传过程中关闭页面。
parent
8a84f514
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
edit.js
src/frontend/web/js/my-course/edit.js
+6
-1
publish.js
src/frontend/web/js/my-course/publish.js
+8
-1
No files found.
src/frontend/web/js/my-course/edit.js
View file @
556b8107
...
@@ -109,4 +109,9 @@ var vm = new Vue({
...
@@ -109,4 +109,9 @@ var vm = new Vue({
richText
.
createEditor
(
$
(
"#introEditor"
),
this
.
tmp
);
richText
.
createEditor
(
$
(
"#introEditor"
),
this
.
tmp
);
}
}
});
});
\ No newline at end of file
//添加关闭提示页面
window
.
onbeforeunload
=
function
()
{
var
warning
=
"确认退出?"
;
return
warning
;
};
\ No newline at end of file
src/frontend/web/js/my-course/publish.js
View file @
556b8107
...
@@ -120,4 +120,11 @@ var vm = new Vue({
...
@@ -120,4 +120,11 @@ var vm = new Vue({
richText
.
createEditor
(
$
(
"#introEditor"
),
this
.
tmp
);
richText
.
createEditor
(
$
(
"#introEditor"
),
this
.
tmp
);
}
}
});
});
\ No newline at end of file
//添加关闭提示页面
window
.
onbeforeunload
=
function
()
{
var
warning
=
"确认退出?"
;
return
warning
;
};
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment