~replaceafill/pybookbuilder/buildout

« back to all changes in this revision

Viewing changes to pybookbuilder/static/chapter_save.js

  • Committer: Filip Sufitchi
  • Date: 2011-03-15 03:12:34 UTC
  • Revision ID: fsufitchi@gmail.com-20110315031234-271ttdpt8pyd7k8i
Added chapter functionality, editing, AJAX submission

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function save_success(){
 
2
    notify('Save successful.');
 
3
}
 
4
 
 
5
function save_chapter(){
 
6
    var data = $('#editarea').val();
 
7
    jQuery.ajax(ajax_save_url, {
 
8
            'data':data,
 
9
                'type': 'POST',
 
10
                'success': save_success});
 
11
}
 
12