revisions.js

Go to the documentation of this file.
00001 // -*-C-*-
00002 /*
00003   This file is part of  DocBookWiki.  DocBookWiki is a web application
00004   that displays and edits DocBook documents.
00005 
00006   Copyright (C) 2004, 2005, 2006, 2007
00007   Dashamir Hoxha, dashohoxha@users.sourceforge.net
00008 
00009   DocBookWiki is free software;  you can redistribute it and/or modify
00010   it under the terms of the GNU General Public License as published by
00011   the Free  Software Foundation; either  version 2 of the  License, or
00012   (at your option) any later version.
00013 
00014   DocBookWiki is distributed  in the hope that it  will be useful, but
00015   WITHOUT  ANY   WARRANTY;  without  even  the   implied  warranty  of
00016   MERCHANTABILITY or  FITNESS FOR A  PARTICULAR PURPOSE.  See  the GNU
00017   General Public License for more details.
00018 
00019   You should  have received a copy  of the GNU  General Public License
00020   along  with  DocBookWiki;  if   not,  write  to  the  Free  Software
00021   Foundation, Inc., 59 Temple  Place, Suite 330, Boston, MA 02111-1307
00022   USA
00023 */
00024 
00025 function show_revisions()
00026 {
00027   SendEvent('revisions', 'show'); 
00028 }
00029 
00030 function hide_revisions()
00031 {
00032   SendEvent('revisions', 'hide'); 
00033 }
00034 
00035 function set_tag()
00036 {
00037   var form = document.revisions;
00038   var tags = form.tags;
00039   var idx = tags.selectedIndex;
00040   var tag = tags.options[idx].value;
00041 
00042   SendEvent('revisions', 'set_tag', 'tag='+tag);
00043 }
00044 
00045 function set_rev()
00046 {
00047   var form = document.revisions;
00048   var revs = form.revs;
00049   var idx = revs.selectedIndex;
00050   var rev = revs.options[idx].value;
00051 
00052   SendEvent('revisions', 'set_rev', 'rev='+rev);
00053 }
00054 
00055 function set_date()
00056 {
00057   var form = document.revisions;
00058   var date = form.date.value;
00059 
00060   SendEvent('revisions', 'set_date', 'date='+date);
00061 }
00062 
00063 function save_rev()
00064 {
00065   var msg = T_("You are overwriting the working copy \n\
00066 with the version that is shown below.");
00067   if (!confirm(msg)) return;
00068   SendEvent('revisions', 'save');
00069 }

Generated on Wed Jan 9 08:27:32 2008 for DokBookWiki by  doxygen 1.5.2