Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rendezvous
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
rendezvous
Commits
cd2542bd
Commit
cd2542bd
authored
Dec 05, 2013
by
tady
Committed by
tady
Dec 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
編集時にページ遷移を確認
parent
4eeaca33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
app/views/posts/_form.html.erb
+9
-1
No files found.
app/views/posts/_form.html.erb
View file @
cd2542bd
...
...
@@ -32,7 +32,7 @@
<div
class=
"col-md-2"
>
<div
class=
"actions"
>
<%=
f
.
submit
class:
'btn btn-primary'
%>
<%=
f
.
submit
class:
'btn btn-primary'
,
id:
'save_button'
%>
</div>
</div>
...
...
@@ -71,6 +71,14 @@
$(function(){
'use strict';
var confirmUnload = function() {
return '前のページに戻りますか?';
};
$(window).on('beforeunload', confirmUnload);
$('#save_button').on('click', function(){
$(window).off('beforeunload', confirmUnload);
});
// Automaticaly change textarea height.
$('textarea.autosize').autosize();
...
...
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