src/cm/media/js/site/text_edit.js
changeset 264 b545c82610df
parent 183 f1c6f8fadfef
child 341 053551f213fb
equal deleted inserted replaced
263:cac40bfebe4b 264:b545c82610df
     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'] ;