equal
deleted
inserted
replaced
1 function check_save(){ |
1 function check_save(){ |
2 var newVersion = $('#id_new_version').attr('checked') ; |
2 var newVersion = $('#id_new_version').attr('checked') ; |
3 var commentsKept = $('#id_keep_comments').attr('checked') ; |
3 var commentsKept = $('#id_keep_comments').attr('checked') ; |
4 |
4 |
5 var new_content = $('#id_content').val() ; |
5 var new_content = $('#id_content').val() ; |
|
6 |
|
7 var o=CKEDITOR.instances['id_content']; |
|
8 if (o) new_content=o.getData(); |
|
9 |
6 var new_format = $('#id_format').val() ; |
10 var new_format = $('#id_format').val() ; |
7 var mess = gettext( 'Should these comments be detached (i.e. kept with no scope) or removed from new version?') ; |
11 var mess = gettext( 'Should these comments be detached (i.e. kept with no scope) or removed from new version?') ; |
8 |
12 |
9 if (commentsKept) { |
13 if (commentsKept) { |
10 var pre_edit_url = tb_conf['pre_edit_url'] ; |
14 var pre_edit_url = tb_conf['pre_edit_url'] ; |