mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
Ask for confirmation before layout reset
This commit is contained in:
parent
5daa6636a6
commit
ac895d64cb
4 changed files with 12 additions and 1 deletions
|
|
@ -10,3 +10,12 @@ function doPreviewLayoutCode()
|
|||
$form.removeAttr('target');
|
||||
$act.val(og_act);
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('.reset_layout').on('click', function(e) {
|
||||
var msg = $(this).data('confirmationMsg');
|
||||
if (!confirm(msg)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue