Skip to content

Commit

Permalink
'just redirect' input is unchecked and hidden if slug change. Fix #86
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaitan committed Apr 14, 2015
1 parent f2cd38a commit 94224e5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions waliki/static/js/waliki_editor.js
Expand Up @@ -64,6 +64,14 @@ $('#btn-waliki_move').on('click', function(e) {
});
});

$('#move-modal').on('show.bs.modal', function (e) {
$('input#id_slug').on('input', function(){
$('input#id_just_redirect').attr('checked', false);
$('#div_id_just_redirect, .modal-body .alert').fadeOut();
});
});


$("#move-form").submit(function(e) {
e.preventDefault();
var url = $(this).attr('action');
Expand All @@ -73,6 +81,9 @@ $("#move-form").submit(function(e) {
}else {
$('#move-modal .modal-body').empty().append(data.data);
$('#move-modal').modal('show');



}
});
});

0 comments on commit 94224e5

Please sign in to comment.